Closed
Description
Hello,
The documentation on Symfony has a CSS bug in rendering diff.
This is more visible on the fast track https://symfony.com/doc/current/the-fast-track/en/6-controller.html#adding-an-easter-egg
The issue is the .highlight-diff .highlight>pre
has a padding-left: 1.5em
But the .highlight-diff .gd
and .highlight-diff .gi
(used to display -
and +
) have a padding-left: 1px
+ margin-left: -15px
.
current rendering | Expected |
---|---|
![]() |
![]() |
Maybe this is because the documentation indent diff with spaces (https://github.com/symfony/symfony-docs/blame/5.x/http_cache.rst#L98-L99) ?
But the render is not perfect
From my tests, using a margin: -1.2em; pading: 0
but maybe it vary on browser and OS?