Commit 7be41d6
committed
dashboard: an out-link label may wrap — the last nowrap that broke the phone
The board family's shared theme now makes wrapping the page default
(PyAutoBrain#266) and bounds its chips (PyAutoBrain#270). `white-space:nowrap`
is the one thing an inherited `overflow-wrap` cannot reach, and this file has
two of them. One is fed by data.
`a.out` labels are built from repo names — `f"{name} run"` for a failing row,
`f"{repo} {kind}"` for a hang event — and this org's longest repo name is 36
characters. Under `nowrap` that is a single unbreakable ~500px word, which
sets the summary column's min-content width and takes the whole page with it.
Rendered with a failing row whose link names that repo and measured in a
headless Chromium: a 375px viewport scrolled to 521px, with the summary text
and the details list dragged off the edge alongside the link.
Dropping `nowrap` costs nothing. A short label like `run ↗` has no wrap
opportunity to take, so it is unaffected; a long one now breaks instead of
breaking the page, and the shared theme's `overflow-wrap` does the rest.
Re-measured: 375/375 at a 390px viewport, 305/305 at 320px.
`td.name` keeps its `nowrap`: those titles come from this module's own fixed
vocabulary ("Libraries", "Workspace test-mode timing"), never from repo data,
so it carries no such trap.
603 tests pass, including one pinning the link label.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VhpLPmmoSFAtVpppG8azVA1 parent 2ccefe3 commit 7be41d6
2 files changed
Lines changed: 24 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1284 | 1284 | | |
1285 | 1285 | | |
1286 | 1286 | | |
1287 | | - | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
1288 | 1296 | | |
1289 | 1297 | | |
1290 | 1298 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
840 | 840 | | |
841 | 841 | | |
842 | 842 | | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
0 commit comments