From d2d1e0ae38af0a44aba07bc296a09f7c71ecca3b Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Mon, 11 Jan 2016 11:52:51 +0100 Subject: [PATCH 1/3] Limit the max height/width of icons in the profiler menu --- .../Resources/views/Profiler/profiler.css.twig | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/profiler.css.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/profiler.css.twig index b61f1c4204401..8365cfeb10a78 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/profiler.css.twig +++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/profiler.css.twig @@ -615,10 +615,15 @@ tr.status-warning td { display: block; position: absolute; left: 0; - top: 8px; + top: 9px; width: 50px; text-align: center; } +#menu-profiler .label .icon img, +#menu-profiler .label .icon svg { + max-height: 24px; + max-width: 24px; +} #menu-profiler li a .label .icon svg path { fill: #DDD; } From 2270f5ac21356b3dfcfc9867086d28d12a357c31 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Mon, 11 Jan 2016 12:06:51 +0100 Subject: [PATCH 2/3] Removed an unrelated change --- .../Resources/views/Profiler/profiler.css.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/profiler.css.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/profiler.css.twig index 8365cfeb10a78..c79ec12974d35 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/profiler.css.twig +++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/profiler.css.twig @@ -615,7 +615,7 @@ tr.status-warning td { display: block; position: absolute; left: 0; - top: 9px; + top: 8px; width: 50px; text-align: center; } From fd421cacdbba6de65b5c0e1256e25d73f6314cb4 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Wed, 20 Jan 2016 12:22:46 +0100 Subject: [PATCH 3/3] Solved the issue differently --- .../Resources/views/Profiler/profiler.css.twig | 2 +- .../Resources/views/Profiler/toolbar.css.twig | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/profiler.css.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/profiler.css.twig index c79ec12974d35..77db944870255 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/profiler.css.twig +++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/profiler.css.twig @@ -621,7 +621,7 @@ tr.status-warning td { } #menu-profiler .label .icon img, #menu-profiler .label .icon svg { - max-height: 24px; + height: 24px; max-width: 24px; } #menu-profiler li a .label .icon svg path { diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar.css.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar.css.twig index 893701359401b..3d38265408a28 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar.css.twig +++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar.css.twig @@ -50,8 +50,7 @@ } .sf-toolbarreset svg, .sf-toolbarreset img { - max-height: 20px; - max-width: 20px; + height: 20px; } .sf-toolbarreset .hide-button {