Skip to content

Commit c824930

Browse files
committed
bug symfony#25709 Tweaked some styles in the profiler tables (javiereguiluz)
This PR was merged into the 2.8 branch. Discussion ---------- Tweaked some styles in the profiler tables | Q | A | ------------- | --- | Branch? | 2.8 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | symfony#25670 | License | MIT | Doc PR | - To fix symfony#25670 and other related minor issues, I propose some tweaks to the tables of the profiler panels. Commits ------- bc80258 Tweaked some styles in the profiler tables
2 parents 7949672 + bc80258 commit c824930

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
{% endif %}
7575

7676
<tr>
77-
<td class="text-right">{{ listener.priority|default('-') }}</td>
77+
<td class="text-right nowrap">{{ listener.priority|default('-') }}</td>
7878
<td class="font-normal">
7979
{% if listener.type == 'Closure' %}
8080

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,9 @@
168168
<tbody>
169169
{% for message in messages %}
170170
<tr>
171-
<td class="font-normal text-small">{{ message.locale }}</td>
171+
<td class="font-normal text-small nowrap">{{ message.locale }}</td>
172172
<td class="font-normal text-small text-bold nowrap">{{ message.domain }}</td>
173-
<td class="font-normal text-small">{{ message.count }}</td>
173+
<td class="font-normal text-small nowrap">{{ message.count }}</td>
174174
<td>
175175
<span class="nowrap">{{ message.id }}</span>
176176

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,6 @@ table tbody td {
174174
border-width: 1px 0;
175175
}
176176

177-
table tbody td {
178-
{{ mixins.break_long_words|raw }}
179-
}
180-
181177
table tbody div {
182178
margin: .25em 0;
183179
}

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Router/panel.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@
5555
{% for trace in traces %}
5656
<tr class="{{ trace.level == 1 ? 'status-warning' : trace.level == 2 ? 'status-success' }}">
5757
<td class="font-normal text-muted nowrap">{{ loop.index }}</td>
58-
<td>{{ trace.name }}</td>
59-
<td>{{ trace.path }}</td>
58+
<td class="break-long-words">{{ trace.name }}</td>
59+
<td class="break-long-words">{{ trace.path }}</td>
6060
<td class="font-normal">
6161
{% if trace.level == 1 %}
6262
Path almost matches, but

0 commit comments

Comments
 (0)