Repository navigation
fix(web): keep Health Strip labels and icons inside their cells - #4917
Conversation
A Health Strip label too long for its cell wrapped to a second line and squeezed its icon to nothing; one long word ran past the cell. Long translations (French "Durée de fonctionnement", German "Fehler · 24 Std.") and the Extra large text size hit it at common widths. The extra line made the cell taller than the one-row card and pushed its value below the others. The icon no longer shrinks, and the label truncates with its full text in a title, as the value line already does. Closes #4808 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 17 minutes. View limit details
|
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Problem
Closes #4808
Related issue: N/A
Validation tasks: none
Other clients: N/A (web admin dashboard only; Apple, Android, and Roku have no admin dashboard)
On the admin dashboard, a Health Strip label that didn't fit its cell wrapped onto a second line, and its icon shrank to nothing. Long translations hit this at common window sizes. In French, "Durée de fonctionnement" (Uptime) wraps at 1024 and 1440 px. At 1024 px the Errors label wraps in German ("Fehler · 24 Std."), Russian, and Japanese. With the in-app Large or Extra large text size it happens in English too, where the Postgres icon shrinks to under 1 px. The extra line made the cell taller, which used up the one-row card's padding and pushed that cell's value below the others. One long word ("fonctionnement") ran past its cell's edge.
Each label now keeps its icon at full size and stays on one line. A label that doesn't fit ends in an ellipsis and shows its full text on hover, as the value line below it already does.
Approach
In
HealthCell, the icon getsshrink-0and the label text moves into atruncatespan with atitle. Letting the label wrap with a fixed icon was the other option. It keeps the full text visible, but the card can't hold it. With Extra large text, the French Uptime label took five lines and the cells ran 17 px past the bottom of the card.Truncation hides part of a long label, and in a few places that costs more than a few letters:
Validation
title. In French the cells end 9.9 px inside the card, the same as English, and the values line up.en-XApseudo-locale, right-to-left, Japanese, Russian, Large and Extra large text at phone, tablet, and desktop widths, keyboard focus and hover on the Errors link, Postgres unreachable, and a 4-digit error count. Before, each of these shrank an icon or wrapped a label, except right-to-left at the default text size and the 820 px tablet layout, which were already fine. After, every icon keeps its size and every label is one line.Evidence: https://evidence.siloserver.org/r/silo-server/issue-4808/
Risks
None identified. Only the Health Strip's label line changes.
Follow-ups
remignores the in-app text size. Giving the cells more room at large text sizes belongs to the pending dashboard grid breakpoint work, not this label line.Checklist
Council review
Background review: 1 round, reviewed 5855fea
Visual review: 2 rounds, captures from main and this branch (sandbox) plus a local dev build
Background findings (Sol), after merge: S1, an admin can resize the Health Strip to half width (6 columns), and at 1024 px its six cells are too narrow for any label: labels now truncate to nothing beside their icons, where on main they spilled across neighbouring cells with their icons gone. Values truncate to one character either way. The cause predates this PR (the strip picks six columns from the viewport, not its own width) and goes to a follow-up with #4871, which has the same cause. S2, keyboard focus on the Errors link doesn't reveal a truncated label's full text; the label stays in the link's accessible name, and the value line already works this way. Not changed.
Visual review fixes: no code changes. Round 2 added the captures the reviewers asked for: phone, tablet, and desktop at Large and Extra large text, focus, hover, error states, right-to-left, Japanese, and Russian. Answered: all three reviewers said that at 1024 px with Large or Extra large text, and in the Errors label's time window, truncation costs more than a few letters. Both are listed under Approach and Follow-ups. Tighter card padding, a narrower icon gap, and shorter translations were declined as out of scope for this fix.
AI Disclosure
🤖 Generated with Claude Code