Skip to content

Commit e560668

Browse files
committed
Added code columns
1 parent 156c506 commit e560668

3 files changed

Lines changed: 13 additions & 2 deletions

File tree

debug_toolbar/statics/css/toolbar.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,3 +634,14 @@ iframe#profilingContent {
634634
#HeadersPanel tbody td {
635635
overflow-wrap: break-word;
636636
}
637+
638+
#RequestPanel tbody td:last-child code {
639+
word-break: break-word;
640+
white-space: normal;
641+
}
642+
643+
#RoutesPanel tbody td code,
644+
#LoggingPanel tbody td code {
645+
word-break: break-word;
646+
white-space: pre-wrap;
647+
}

debug_toolbar/templates/panels/logging.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<td>{{ record.level }}</td>
1616
<td>{{ record.time.strftime('%H:%M:%S %m/%d/%Y') }}</td>
1717
<td>{{ record.channel|default('-') }}</td>
18-
<td>{{ record.message }}</td>
18+
<td><code>{{ record.message }}</code></td>
1919
<td>{{ record.file }}:{{ record.line }}</td>
2020
</tr>
2121
{% endfor %}

debug_toolbar/templates/panels/routes.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<td>{% if route.methods %}{{ route.methods|sort|join(', ') }}{% endif %}</td>
1616
<td>{{ route.path }}</td>
1717
<td>{{ get_name_from_obj(route.endpoint) }}</td>
18-
<td>{{ route.description }}</td>
18+
<td><code>{{ route.description }}</code></td>
1919
</tr>
2020
{% endfor %}
2121
</tbody>

0 commit comments

Comments
 (0)