Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ba8a68f

Browse files
bug #26230 [WebProfilerBundle] Fix anchor CSS (ro0NL)
This PR was squashed before being merged into the 3.4 branch (closes #26230). Discussion ---------- [WebProfilerBundle] Fix anchor CSS | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes/no | Fixed tickets | #... <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | symfony/symfony-docs#... <!--highly recommended for new features--> Empty source lines overlap in `/_profiler/open?file=x`. AFAIK it's a regression after #23296, but it's the first time i noticed so maybe it's related to a chrome change in between. No real CSS expert.. but this seems to fix it. Before: ![image](https://user-images.githubusercontent.com/1047696/36377240-ba3f897a-1576-11e8-8660-8b04a6f7bd76.png) After: ![image](https://user-images.githubusercontent.com/1047696/36377574-f99bd73a-1577-11e8-913c-d4287d5115a2.png) I can confirm both chrome and firefox render as shown in the after screenshot. Firefox worked before as well, chrome not. cc @ogizanagi Commits ------- ee45992 [WebProfilerBundle] Fix anchor CSS
2 parents fcca141 + ee45992 commit ba8a68f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Bridge/Twig/Extension/CodeExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,6 @@ protected static function fixCodeMarkup($line)
259259
$line .= '</span>';
260260
}
261261

262-
return $line;
262+
return trim($line);
263263
}
264264
}

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/open.css.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ a.doc:hover {
6868

6969
.anchor {
7070
position: relative;
71-
display: block;
71+
display: inline-block;
7272
top: -7em;
7373
visibility: hidden;
7474
}

0 commit comments

Comments
 (0)