EnlighterJS / Plugin.WordPress

:package: Official WordPress Plugin of EnlighterJS
http://wordpress.org/plugins/enlighter/
GNU General Public License v2.0
117 stars 17 forks source link

One-line code block hides the Enlighter buttons #357

Closed maidentaiwan closed 1 year ago

maidentaiwan commented 1 year ago

Describe the bug If a code block is just one line long, the Enlighter buttons on the right side are cut off vertically when the block is rendered.

WordPress Editing Mode Classic editor, but it doesn't matter because the problem is at render time.

Frontend or Backend Issue Frontend

To Reproduce See Example code and the screenshot.

Expected behavior Enlighter buttons on the right side should appear.

Screenshots See screenshot to be uploaded

Example code Render this with Block-Code, Plain Text, Standard (Enlighter).

/^[achiort]*c[achiort]*$/

Desktop (please complete the following information):

maidentaiwan commented 1 year ago

Here is a screenshot. Notice how the buttons on the right are cut off vertically. Screenshot_20221017_103854

AndiDittrich commented 1 year ago

see https://github.com/EnlighterJS/documentation/blob/master/Tweaks.md#set-minimal-height-for-single-line-codeblocks

it's the intended behaviour.