8000 bug #20679 [VarDumper] Use default color for ellipsed namespaces/path… · symfony/symfony@726c781 · GitHub
[go: up one dir, main page]

Skip to content

Commit 726c781

Browse files
bug #20679 [VarDumper] Use default color for ellipsed namespaces/paths (nicolas-grekas)
This PR was merged into the 3.2 branch. Discussion ---------- [VarDumper] Use default color for ellipsed namespaces/paths | Q | A | ------------- | --- | Branch? | 3.2 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #20669 | License | MIT | Doc PR | - Eases readability by helping the eye to focus more quickly on the class name and less on its namespace. And let' disable ellipses on the profiler panels, fixing #20669 meanwhile. ![capture du 2016-11-29 11-00-00](https://cloud.githubusercontent.com/assets/243674/20705475/5d512c9a-b623-11e6-881d-04ae58453824.png) Commits ------- ebc23cf [VarDumper] Use default color for ellipsed namespaces/paths
2 parents d5624a6 + ebc23cf commit 726c781

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -900,6 +900,7 @@ table.logs .metadata {
900900
#collector-content .sf-dump-note { color: #6897BB; }
901901
#collector-content .sf-dump-key { color: #789339; }
902902
#collector-content .sf-dump-ref { color: #6E6E6E; }
903+
#collector-content .sf-dump-ellipsis { color: #CC7832; max-width: 100em; }
903904

904905
#collector-content .sf-dump {
905906
margin: 0;

src/Symfony/Component/VarDumper/Dumper/HtmlDumper.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ class HtmlDumper extends CliDumper
4343
'meta' => 'color:#B729D9',
4444
'key' => 'color:#56DB3A',
4545
'index' => 'color:#1299DA',
46+
'ellipsis' => 'color:#FF8400',
4647
);
4748

4849
private $displayOptions = array(
@@ -380,7 +381,7 @@ function isCtrlKey(e) {
380381
display: inline-block;
381382
overflow: visible;
382383
text-overflow: ellipsis;
383-
width: 5em;
384+
max-width: 5em;
384385
white-space: nowrap;
385386
overflow: hidden;
386387
vertical-align: top;

0 commit comments

Comments
 (0)
0