fix: prevent horizontal overflow of import error details #1174

This commit is contained in:
FuzzyGrim
2026-02-09 21:24:09 +01:00
parent e0cc8024fd
commit 858e845e04
2 changed files with 4 additions and 1 deletions

View File

@@ -1611,6 +1611,9 @@
.text-pretty {
text-wrap: pretty;
}
.break-words {
overflow-wrap: break-word;
}
.whitespace-nowrap {
white-space: nowrap;
}

View File

@@ -489,7 +489,7 @@
x-text="showDetails ? 'Hide traceback' : 'Show traceback'">Show traceback</button>
{% endif %}
<div class="mt-2 space-y-1 text-sm bg-[#2a2f35] p-3 rounded"
<div class="mt-2 space-y-1 text-sm bg-[#2a2f35] p-3 rounded overflow-x-auto break-words"
x-show="showDetails">
<div class="text-xs space-y-1 text-red-400">
{% for error in result.errors.splitlines %}<div>{{ error }}</div>{% endfor %}