Repository navigation
Description
What happened
With a browser default font size below 16px, the admin dashboard's one-row stat tiles cut off their own text. At Chrome's "Very small" setting (9px) the Total Movies and Total Shows labels are clipped at the tile's top edge and the "N files" line sits on its bottom edge; the Storage tile measures the same overflow. At "Small" (12px) the tiles still need about 6px more than their row gives them. Tiles whose value has no sub line (Active Streams, Egress now, Profiles · 24h) fit.
Measured on the tiles' panel (content height against visible height): 67px of content in 56px at 9px, 81px in 75px at 12px, and it fits at 16px.
Steps to reproduce
- On a Silo dev deployment with library stats loaded, set the browser's default font size to 9px (Chrome: Settings → Appearance → Font size → Very small) or 12px (Small).
- Open the admin dashboard in a window 1440px wide.
- Look at the Total Movies, Total Shows, and Storage tiles in the top row.
Seen at both sizes in headless Chromium on the web admin page, with the browser default font set through CDP Page.setFontSizes and the server's API responses stubbed: no server deployment was available.
Expected behavior
The tile's label, value, and sub line stay visible inside the tile at any browser font size, as they do at 16px. The dashboard's rows follow the browser's font size (they are rem), so the tile text should shrink with them.
Silo version / commit
main at 8924ba6
Deployment
Web admin dashboard; reproduced against a local frontend build with stubbed API responses.
Clients affected
- Web UI
Client app and device
Headless Chromium, 1440×900 viewport, default font size 9px and 12px.
Relevant logs
No logs available; this is a layout problem with no server error.
Technical notes
StatTile in web/src/components/admin/dashboard/widgets/statTiles.tsx sizes its text in px (text-[11px] label, text-[28px] value, text-[11px] sub line) inside rem padding (p-4, mb-1.5), in a grid row that is 6.25rem tall from 1024px up (--admin-row-h in web/src/app.css). A smaller browser font shrinks the row and padding but not the text, and the panel's overflow-hidden hides what doesn't fit. #4806 fixed the same mismatch in the Health Strip by moving its text to the equal rem sizes, the way #1806 did for the browse screens.
Separate work in progress on the same tiles' clipping at the narrowest widths is changing these lines, so this should start after that lands.
Source: found while fixing #4806
AI harness
Claude Code in T3 Code
AI tool(s)
Claude Code, Playwright (headless Chromium)
AI model(s)
claude-opus-5-5
AI involvement
Fully AI-generated; not yet human verified
Independent or adversarial review
n/a
Confirmations
- I searched open and recently closed issues and pull requests, and this is not already reported
- I reproduced this myself on a real deployment
- Any logs provided are raw apart from marked redactions and are not AI-summarized; if none were available, I said so above
Activity