Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d980e70

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

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,10 @@
169169
{% for message in messages %}
170170
<tr>
171171
<td class="font-normal text-small">{{ message.locale }}</td>
172-
<td class="font-normal text-small text-bold">{{ message.domain }}</td>
172+
<td class="font-normal text-small text-bold nowrap">{{ 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)