SQLPanel code elements don't wrap
Author: tim-schillingCreated Sep 23, 2026Updated Sep 23, 2026
LabelsImprovementFrontend
When viewing the explain output of toolbar v8 and Django 6.1, the SQL content is very long and renders on a single line. The user has to horizontally scroll to view the content. This appears to be due to the whitespace: pre style.
I think we'd want this to wrap ideally. For the other code blocks (like showing template code), we'll need to be careful about wrapping user code. It's possible we should only tweak this block to avoid horizontally scrolling.
Specific example
Whole page view
Source: django-commons/django-debug-toolbar