Skip to content

Commit cad7225

Browse files
Disables localization in CSS float formatting.
Otherwise we get CSS like `width: 1,1%;` in French, with a comma instead of a dot.
1 parent 06af553 commit cad7225

File tree

1 file changed

+2
-2
lines changed
  • template_profiler_panel/templates/template_profiler_panel

1 file changed

+2
-2
lines changed

template_profiler_panel/templates/template_profiler_panel/template.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ <h4>{{ templates|length }} {% trans 'calls to Template.render()' %}</h4>
2525
<td>{{ template.name }}</td>
2626
<td class="timeline">
2727
<div class="djDebugTimeline">
28-
<div class="djDebugLineChart" style="left: {{ template.offset_p }}%;">
29-
<strong title="Start {{ template.start }}" style="min-width: 1px; width: {{ template.rel_duration_p }}%; background-color: {{ template.color.bg }};">&nbsp;</strong>
28+
<div class="djDebugLineChart" style="left: {{ template.offset_p|stringformat:'f' }}%;">
29+
<strong title="Start {{ template.start }}" style="min-width: 1px; width: {{ template.rel_duration_p|stringformat:'f' }}%; background-color: {{ template.color.bg }};">&nbsp;</strong>
3030
</div>
3131
</div>
3232
</td>

0 commit comments

Comments
 (0)