EnlighterJS / EnlighterJS

:high_brightness: an open source syntax highlighter written in pure javascript
https://enlighterjs.org/
Mozilla Public License 2.0
1.03k stars 213 forks source link

Bad button positioning in {one, two & three}-line code block #197

Closed oleg-dk closed 1 year ago

oleg-dk commented 2 years ago

The buttons get up in the wrong position, in a one-line code block: Firefox_Screenshot_2022-08-10T15-49-16 732Z two-line code block: Firefox_Screenshot_2022-08-10T15-56-05 688Z and even three-line block doesn't looks good: Firefox_Screenshot_2022-08-10T15-59-17 531Z

AndiDittrich commented 2 years ago

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

there are not plans to change this behaviour because the toolbar can be moved to different positions