Skip to content

fix(web): keep the dashboard Health Strip inside its row at small browser font sizes - #4806

Merged
Quick104 merged 1 commit into
mainfrom
fix/health-strip-cell-overflow
Nov 21, 2026
Merged

Quick104 merged 1 commit into
mainfrom
fix/health-strip-cell-overflow

Conversation

@Quick104

@Quick104 Quick104 commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Validation tasks: none

Other clients: N/A (browser layout fix in the web admin dashboard; the Apple, Android, and Roku apps don't render this dashboard)

When a browser's default font size is set below 16px, the admin dashboard's Health Strip spills out of its card. At Chrome's "Very small" setting (9px) the six status cells stick out about 6px above and below the card's border. At "Small" (12px) they press against the border with the card's padding used up. This change makes the cell text shrink with the row, so the strip stays inside its card at small browser font sizes. It should merge after a pending dashboard grid change; see Risks.

The dashboard's rows are a fixed height in rem from 1024px wide up (--admin-row-h: 6.25rem), and the Health Strip is one row tall by default. The card and cell padding are rem too, but HealthCell sized its label, value, and detail text in px. A smaller browser font shrank the row and padding and left the text at full size.

Approach

HealthCell's label, value, and detail sizes are now the equal rem values (0.6875rem, 0.9375rem, 0.625rem), as #1806 did for the browse and detail screens. At the default 16px nothing changes.

The in-app Large and Extra large text settings used to enlarge these sizes through the html[data-text-scale] .text-[Npx] override rules. Those rules no longer match. The text now scales through the root font size those settings already set (112.5% and 125%), which comes out within a fraction of a pixel of before: a 15px value is 16.875px at Large instead of 16.8px.

Changing the .text-[Npx] rules in app.css to follow the browser font size would fix every px size at once. It would also change text across the whole app for anyone with a non-default browser font, so this converts only this widget, the way #1806 converted its screens.

Validation

  • Reproduced on the real /admin page in headless Chromium, with the browser default font size set through CDP the way Chrome's font size setting does. No server sandbox could start, so the dashboard's API responses were stubbed in the browser.
  • Before and after at 9px, 12px, and 16px on desktop, at 16px with in-app Large and Extra large text, and at tablet and phone widths. Before, at 9px the cells sat 5.9px outside the card's top edge and 5.8px outside its bottom edge. After, they sit 5.1px inside both. At 12px they went from 0.8px inside to 7.1px inside. At 16px, and at the tablet and phone widths (where rows size to their content), nothing changed.
  • Also checked at 1024px (the narrowest width with fixed rows), with a 12px browser font combined with in-app Large and Extra large, with Postgres unreachable, in the en-XA pseudo-locale, and in Arabic. Every one of those fits after the change. Three of them overflowed before: 12px with Extra large at 1024px, the pseudo-locale at 12px, and 9px with Postgres down. No capture scrolls horizontally. Browser fonts above 16px are covered under Risks.
  • Web lint, format check, typecheck, production build, and bundle budget pass. The web test suite passes except for six files (API request deadlines, auth session refresh, player, and collection pages) that fail the same way on the base commit without this change. The Go and contract checks weren't run, since nothing they cover changed.

Evidence: https://evidence.siloserver.org/r/silo-server/health-strip-cell-overflow/

Risks

Merge this after the pending dashboard grid change (a link will follow once it opens). That change starts the dashboard's fixed rows at whichever of 1024px and Tailwind's lg comes later. At a browser font above 16px, between 1024px and lg (1280px at Chrome's "Large", 20px), main already uses one fixed-height row while the strip still lays its cells out three across in two rows. The strip already overflows its card there: by about 33px at 20px. With rem text the cells are bigger, so that grows to about 45px. With that change's media query applied in the page, the strip fits at 20px and 24px at every width checked.

At the default browser font size the cells render exactly as before.

Follow-ups

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • Each test this pull request adds meets "Decide what to test" in CONTRIBUTING.md.
  • The Evidence section shows every change a user can see, or how I checked a change nobody sees.

Council review

Background review: 1 round, reviewed 6bbe7c1

Member Round 1
Sol (gpt-6.2-sol, xhigh) 8/10
Opus (claude-opus-5-5, high) 9/10
Gemini (gemini-4-neon, xhigh) 9/10

Answered: Sol's S1 (Postgres "Unreachable" truncates at a 20px browser font at 1280px). The same values already truncate at the default 16px at its narrowest six-column width, before and after this change. The text now keeps the 16px proportions instead of ignoring the larger font. Opus and Gemini found nothing.

Visual review: 2 rounds, on captures of this change's code

Member Round 1 Round 2
Sol better, 7/10 better, 8/10
Opus better, 7/10 better, 7/10
Gemini better, 7.5/10 better, 7/10

Round 2 rated the large-font overlap under Risks a blocker if this merges alone; all three agreed merging after the grid change resolves it. Answered: the 9px text stays as small as the browser setting makes it, since a minimum size would need content-sized dashboard rows. Pre-existing and left out: the stat tiles' sizing, Health Strip labels that wrap and squeeze their icons in long translations, the truncated Nodes detail, the card's uneven insets, and the red error count's contrast.

AI Disclosure

  • Harness: Claude Code in T3 Code
  • Tool(s): Claude Code, OpenAI Codex, Antigravity, GitHub CLI, Playwright (headless Chromium)
  • Model(s): claude-opus-5-5 (implementation and review), claude-sonnet-5-5 (review subagents), gpt-6.2-sol (visual and adversarial review), gemini-4-neon (visual and adversarial review)
  • Involvement: Fully AI-generated; not yet human verified
  • Adversarial review: code-review at xhigh effort (three finders, a sweep, and a validation check) found no defects in the diff. Its suggestion to change px text app-wide in app.css is answered under Approach, and the other one-row widgets it flagged are listed under Follow-ups. The plan round was skipped because the fix is three class values at the root cause and adds nothing. A simplify pass reworded the code comment. See Council review for the visual review and the background review.

🤖 Generated with Claude Code

…wser font sizes

The Health Strip cells sized their text in px while the dashboard row,
the card padding, and the cell padding are rem. With a browser default
font below 16px the row shrank but the text did not, so at Chrome's
"Very small" (9px) the cells stuck out about 6px above and below the
card, and at 12px they pressed against its border.

The label, value, and detail sizes are now the equal rem values, so
they shrink with the row. At the default 16px nothing changes, and the
in-app Large and Extra large text settings scale them through the root
font size as before.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 22 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9ba6ff0e-cd6f-47d4-af41-f5d16fa858bc
Commits

Reviewing files that changed from the base of the PR and between 57fb867 and 6bbe7c1.

Files selected for processing: 1

  • web/src/components/admin/dashboard/widgets/HealthStripWidget.tsx
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@silo-triage silo-triage Bot added the size/S 0–49 added + deleted lines (all files); change volume, not priority. label Nov 21, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-21T03:08:23.151431Z 6bbe7c1 PR opened
🔒 Security Review ✅ Completed 2026-11-21T03:09:31.753885Z 6bbe7c1 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@silo-kody

silo-kody Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@silo-triage silo-triage Bot added bug Something isn't working impact: polish Annoyance, cosmetic, or nice-to-have priority: P2 Limited scope, workaround exists, or polish labels Nov 21, 2026

@Quick104 Quick104 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adversarial review (gpt-6.2-sol, reviewed 6bbe7c1)

I compared the base and head in Chromium on /admin with stubbed API responses and confirmed that the cells fit at a 9px browser default. The inline finding covers a regression at a larger browser font size.

AI review by Codex in T3 Code (gpt-6.2-sol), using Chromium via Playwright for reproduction.

<div
className={cn(
"mt-1 truncate text-[15px] leading-tight font-bold tabular-nums",
"mt-1 truncate text-[0.9375rem] leading-tight font-bold tabular-nums",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

S1 [P3] Keep the full health status visible at larger browser font sizes

On /admin at a 1280px viewport with Chrome’s browser font set to 20px, the full-width, one-row strip gives the Postgres value 110px. “Unreachable” measures 92.9px on the base and 116.1px on this head, so the outage status is now ellipsized. I measured both builds with the proposed breakpoint adjustment applied. The grid still uses six cells across at this width.

Keep the rem sizes and let dependency statuses wrap where needed, with enough row height to show the full text.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked in headless Chromium with Postgres unreachable and Redis not configured. This truncation already happens at the default browser font size. At 16px and 1024px wide, the narrowest width with six cells in a row, "Unreachable" (93px) and "Not configured" (110px) are cut to an ellipsis in their 80px cells. That was true before this PR, and it's unchanged after it. At 20px the narrowest six-column width is 1280px. With rem text the cell and its text now keep the same proportions they have at 16px, so the same values are cut there too (116px in 110px). Before, they fit only because the text ignored the larger browser font. At 16px and 1280px nothing is cut, before or after.

So the PR doesn't add a new failure. It makes a 20px font behave the way 16px already does at its narrowest width. The value line handles overflow by design (truncate with the full value in title), and the status keeps its red error colour when it's cut. Letting statuses wrap would make the cells taller inside the fixed one-row card, which is the overflow this PR fixes. Whether long statuses should get more room at the narrowest widths is a separate question that predates this PR, and I've left it for the maintainer rather than changing it here.

🤖 Claude Code (claude-opus-5-5)

@Quick104
Quick104 merged commit 8924ba6 into main Nov 21, 2026
21 checks passed
@Quick104
Quick104 deleted the fix/health-strip-cell-overflow branch November 21, 2026 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working impact: polish Annoyance, cosmetic, or nice-to-have priority: P2 Limited scope, workaround exists, or polish size/S 0–49 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant