8000 [WebProfilerBundle] Fix for CSS attribute at Profiler Translation Page · symfony/symfony@6fe86cd · GitHub
[go: up one dir, main page]

Skip to content

Commit 6fe86cd

Browse files
committed
[WebProfilerBundle] Fix for CSS attribute at Profiler Translation Page
1 parent e3d90db commit 6fe86cd

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@
172172
<td class="font-normal text-small text-bold">{{ message.domain }}</td>
173173
<td class="font-normal text-small">{{ message.count }}</td>
174174
<td>
175-
{{ message.id }}
175+
<span class="nowrap">{{ message.id }}</span>
176176

177177
{% if message.transChoiceNumber is not null %}
178178
<small class="newline">(pluralization is used)</small>
@@ -189,7 +189,7 @@
189189
</div>
190190
{% endif %}
191191
</td>
192-
<td>{{ message.translation }}</td>
192+
<td class="prewrap">{{ message.translation }}</td>
193193
</tr>
194194
{% endfor %}
195195
</tbody>

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,9 @@ table tbody ul {
197197
.nowrap {
198198
white-space: pre;
199199
}
200+
.prewrap {
201+
white-space: pre-wrap;
202+
}
200203
.newline {
201204
display: block;
202205
}

0 commit comments

Comments
 (0)
0