8000 bug #20716 [WebProfilerBundle] Fix dump block is unfairly restrained … · symfony/symfony@03c79be · GitHub
[go: up one dir, main page]

Skip to content

Commit 03c79be

Browse files
committed
bug #20716 [WebProfilerBundle] Fix dump block is unfairly restrained (ogizanagi)
This PR was merged into the 2.8 branch. Discussion ---------- [WebProfilerBundle] Fix dump block is unfairly restrained | Q | A | ------------- | --- | Branch? | 2.8 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | N/A | License | MIT | Doc PR | N/A The `display: table-row` rule does not suit well for such blocks and prevent from containing them properly in the parent container (thus the reason why the width was set to `200px` I guess). ### Before <img width="539" alt="screenshot 2016-12-01 a 20 21 49" src="https://cloud.githubusercontent.com/assets/2211145/20808878/8af6faa2-b804-11e6-8656-8ebd710b4acb.PNG"> ### After <img width="524" alt="screenshot 2016-12-01 a 20 21 14" src="https://cloud.githubusercontent.com/assets/2211145/20808885/9106b0cc-b804-11e6-9ddc-0cc09a546274.PNG"> (max width is still fixed to `480px` by `.sf-toolbar-block:hover .sf-toolbar-info`) Commits ------- 997beb2 [WebProfilerBundle] Fix dump block is unfairly restrained
2 parents 25fa4a0 + 997beb2 commit 03c79be

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,11 +356,13 @@
356356
border-color: #777;
357357
border-radius: 0;
358358
margin: 6px 0 12px 0;
359-
width: 200px;
360359
}
361360
.sf-toolbar-block-dump pre.sf-dump:last-child {
362361
margin-bottom: 0;
363362
}
363+
.sf-toolbar-block-dump .sf-toolbar-info-piece {
364+
display: block;
365+
}
364366
.sf-toolbar-block-dump .sf-toolbar-info-piece .sf-toolbar-file-line {
365367
color: #AAA;
366368
margin-left: 4px;

0 commit comments

Comments
 (0)
0