Skip to content

fix(files): wrap long error status labels instead of truncating#159

Merged
Nic-dorman merged 1 commit into
mainfrom
fix/wrap-error-status-label
Jun 10, 2026
Merged

fix(files): wrap long error status labels instead of truncating#159
Nic-dorman merged 1 commit into
mainfrom
fix/wrap-error-status-label

Conversation

@Nic-dorman

Copy link
Copy Markdown
Contributor

Problem

On the Files page, failed uploads/downloads surface their full error string through StatusBadge (Failed: <error>). But error labels were capped at max-w-xs truncate, so anything past one line's width was clipped to an ellipsis — the full message was only reachable via the title tooltip. viem/network errors are often a wall of text, making the visible portion useless.

Fix

Error labels now use whitespace-normal break-words so they wrap onto multiple lines and the whole message is visible inline in the table. They're still capped at max-w-xs so a long stacktrace doesn't blow out the column width, and align-top keeps the status dot pinned to the first line. The tooltip is retained.

Non-error statuses are unchanged (single-line, whitespace-nowrap).

Scope: single template-class change in components/StatusBadge.vue. Covers both render sites on the Files page since both go through StatusBadge.

🤖 Generated with Claude Code

Failed uploads/downloads surface their full error through StatusBadge,
but error labels were capped at max-w-xs truncate, clipping anything
past one line to an ellipsis (full text only via the title tooltip).

Switch error labels to whitespace-normal break-words so they wrap onto
multiple lines and the whole message is visible in the files table.
Still capped at max-w-xs to avoid blowing out the column width;
align-top keeps the status dot pinned to the first line. Non-error
statuses are unchanged (single-line, whitespace-nowrap).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Nic-dorman Nic-dorman merged commit f44bd21 into main Jun 10, 2026
4 checks passed
@Nic-dorman Nic-dorman deleted the fix/wrap-error-status-label branch June 10, 2026 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant