8000 More vertical aligning fixes · symfony/symfony@f087ac0 · GitHub
[go: up one dir, main page]

Skip to content

Commit f087ac0

Browse files
committed
More vertical aligning fixes
1 parent 9e38a8a commit f087ac0

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/twig.html.twig

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
{% block toolbar %}
44
{% set time = collector.templatecount ? '%0.0f'|format(collector.time) : 'n/a' %}
55
{% set icon %}
6-
<span>
7-
{{ include('@WebProfiler/Icon/twig.html.twig') }}
8-
<span class="sf-toolbar-value">{{ time }}</span>
9-
<span class="sf-toolbar-label">ms</span>
10-
</span>
6+
{{ include('@WebProfiler/Icon/twig.html.twig') }}
7+
<span class="sf-toolbar-value">{{ time }}</span>
8+
<span class="sf-toolbar-label">ms</span>
119
{% endset %}
1210

1311
{% set text %}

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,11 +393,22 @@
393393
.sf-toolbar-icon .sf-toolbar-value {
394394
display: inline;
395395
}
396+
.sf-toolbar-block .sf-toolbar-value {
397+
/* needed for perfect vertical aligning */
398+
line-height: 37px;
399+
}
396400

397401
.sf-toolbar-block .sf-toolbar-icon img,
398402
.sf-toolbar-block .sf-toolbar-icon svg {
399403
top: 6px;
400404
}
405+
/* TODO: needed for perfect vertical aligning, remove when icons are recreated */
406+
.sf-toolbar-block-twig .sf-toolbar-icon img {
407+
top: 7px;
408+
}
409+
.sf-toolbar-block-security .sf-toolbar-icon svg {
410+
top: 7px;
411+
}
401412 .sf-toolbar-block-config .sf-toolbar-icon svg {
402413
top: 8px;
403414
}

0 commit comments

Comments
 (0)
0