gitbook icon indicating copy to clipboard operation
gitbook copied to clipboard

The inline icons are not aligned properly in the middle, in the previous version they was properly fit

Open KDyulgerov opened this issue 1 year ago • 3 comments

Bug description

Please describe.
If this affects the front-end, screenshots would be of great help.

How to reproduce

  1. Create an H1 title and insert a small inline image.
  2. Publish it and navigate to the live page.
  3. The icon will not be aligned properly in the middle:

Not aligned icons in the text

The correct alignment, as in the previous version was also as follows:

Example for the not aligned icons

Additional context

KDyulgerov avatar May 23 '24 17:05 KDyulgerov

Just to debug this a bit more - does it help if you use a smaller icon instead? I think it should fit in the line-height a bit better

addisonschultz avatar May 24 '24 01:05 addisonschultz

This happens when the image is inline and uses the original size option, the weird thing is that in the admin panel, everything looks okay like the example image but once you publish it, it does not align.

KDyulgerov avatar May 24 '24 06:05 KDyulgerov

Hello thanks

Eloutmanixx avatar May 26 '24 19:05 Eloutmanixx

We’ve now shipped a new inline icon, which should render as expected! You can find it in the insert menu!

addisonschultz avatar Jul 01 '25 11:07 addisonschultz