Repository navigation
fix(web): keep the Health Strip loading skeleton inside its row at small font sizes - #4793
Conversation
…all font sizes The skeleton's 92px minimum didn't follow the browser's default font size, but the dashboard's 6.25rem row does. Below a 16px default the skeleton ran past its row and into the widget below while the server status loaded. Size the minimum in rem (5.75rem, still 92px at 16px) so it stays below one row at any default font size. 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 37 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. |
| // and below the grid's fixed row (--admin-row-h in app.css), so it fits one | ||
| // row at any browser font size; a px minimum overflows the row when a small | ||
| // default font shrinks it. | ||
| return <Skeleton className="h-full min-h-23 rounded-2xl" />; |
There was a problem hiding this comment.
S1 · P3 · Extra layout shift on narrow screens
At 390px wide with a 12px browser default, a Chromium layout fixture using the dashboard grid rules measured a 69px placeholder instead of 92px. The loaded card is identical on both commits, so the next widget moved down an extra 23px when the status loaded. The existing height mismatch in #4794 predates this patch. The extra 23px comes from this change.
Keep a 92px floor for the scalable minimum on content-sized rows, and clear the minimum in the same media rule that sets grid-auto-rows.
There was a problem hiding this comment.
Confirmed: at 390px wide with a 12px default, the skeleton is 69px, and the jump when the status loads grows from 148px to 171px. I'm keeping the change as it is:
- The jump moves both ways with the font size; it doesn't only grow. At the 16px default it's unchanged (180px at 390px wide). At 20px it's 23px smaller: 215px to 192px at 390px wide, and 131px to 108px at 820px.
- Part of the extra shift at 12px comes from the loaded strip not scaling.
HealthCellsets its text in px, so the loaded strip only shrinks from 272px to 240px when the default drops to 12px. A separate fix is moving that text to rem. Once it lands, I expect the loaded strip at 12px to be about 75% of its 16px height, which would make the 12px jump smaller than on main. That's an estimate, not a measurement. - A 92px floor cleared in the
grid-auto-rowsmedia rule needs a new rule inside the.admin-widget-gridmedia block. Another pending change is rewriting that block (1024px to 64rem). The floor would also stop the minimum from following the font size at small sizes. [bug] Health Strip loading skeleton is much shorter than the loaded strip on narrow screens #4794 tracks the fix that removes the jump at every size: a skeleton that mirrors the loaded cell grid.
I'm leaving this thread open in case a maintainer prefers the floor.
🤖 Claude Code (claude-opus-5-5)
Problem
Related issue: N/A
Validation tasks: none
Other clients: N/A (web admin only; the Apple, Android, and Roku apps have no admin dashboard)
With a browser default font size below 16px, the admin dashboard's Health Strip loading skeleton is taller than the grid row it sits in. While the server status loads, it runs past its row and into the widget below. This change sizes the skeleton's minimum height in rem, so it fits its row at any default font size.
The strip is one row tall by default. Its row is 6.25rem: 100px at a 16px default, 75px at 12px, and 56.25px at Chrome's "Very small" (9px). The skeleton's minimum was a fixed 92px, so at 12px it ran 17px past its row and 6.5px into Now Playing, and at 9px it ran 36px past. The loaded card already fills its row with
h-full; only the loading state was affected.Approach
The minimum is now
min-h-23(5.75rem). That is 92px at the 16px default, as before, and always below the 6.25rem row, soh-fulldecides the height wherever rows are fixed. Where rows are content-sized (narrow screens), the minimum still gives the skeleton a height and now scales with the font size.No breakpoint is involved, so the fix holds whether the grid's fixed rows start at 1024px or move to Tailwind's
lg(64rem). Scoping the old px minimum to narrow screens withmax-lg:would collapse the skeleton to 0px between 768px and 1023px at a 12px default, wherelgalready applies but the grid's rows are still content-sized.Validation
/adminpage in headless Chromium, with the browser default font size set through CDP (Page.setFontSizes) to 9, 12, 16, and 20px at 390, 820, 1200, and 1440px wide. The server-status request was held open so the skeleton stayed on screen. A sandbox deployment couldn't start (its Docker host had run out of network address pools), so the page ran on a local Vite dev server with Playwright answering the API: an admin session, one profile, and a 404 for everything else.Evidence
Surface and build: web admin dashboard, desktop and mobile web; before on main at e4677dd, after at 936fb78.
Evidence: https://evidence.siloserver.org/r/silo-server/health-strip-skeleton/
Risks
None identified. The change touches one widget's loading state and renders the same at the 16px default.
Checklist
Follow-ups
Council review
Background review: 1 round, reviewed 936fb78
Visual review: 2 rounds, captures from e4677dd (before) and this branch (after)
Answered: all three noted that on narrow screens the skeleton is much shorter than the loaded strip, so content jumps when the status arrives. That was already true before this change, which moves the skeleton by up to 23px with the font size (shorter at 12px, taller at 20px, unchanged at 16px); a skeleton that mirrors the loaded cell grid is tracked in #4794. Label wrapping seen in a simulated 64rem grid belongs to a separate breakpoint change. Background review: Sol's S1 (the skeleton is 23px shorter at a 12px default on narrow screens, so content moves 23px more on load) is answered in its thread and left open for a maintainer; Opus and Gemini found nothing.
AI Disclosure
🤖 Generated with Claude Code