10000 bug #22123 [WebProfilerBundle] Fix for CSS attribute at Profiler Tran… · symfony/symfony@f354a47 · GitHub
[go: up one dir, main page]

Skip to content

Commit f354a47

Browse files
committed
bug #22123 [WebProfilerBundle] Fix for CSS attribute at Profiler Translation Page (e-moe)
This PR was merged into the 2.8 branch. Discussion ---------- [WebProfilerBundle] Fix for CSS attribute at Profiler Translation Page | Q | A | ------------- | --- | Branch? | 2.8 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #22107 | License | MIT | Doc PR | none Commits ------- d980e70 [WebProfilerBundle] Fix for CSS attribute at Profiler Translation Page
2 parents e3d90db + d980e70 commit f354a47

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)
0