Repository navigation
Description
Summary
Two pages break the design-system rule that the page body must never scroll horizontally (wide content scrolls inside its own container). Both tab strips overflow the viewport at tablet and phone widths. Separately, at 640px the Dashboard grid toolbar overlaps the stats cluster.
Context
Found during an exploratory E2E sweep of dev @ c1cc22bc, measured with document.documentElement.scrollWidth - clientWidth.
Horizontal body overflow
| Viewport | Page | Overflow | Worst offender |
|---|---|---|---|
| 375×812 | /settings |
+563px | BUTTON :: "Activation" (tab strip) |
| 375×812 | /agents/{name} |
+517px | BUTTON.ml-auto :: "More" |
| 768×1024 | /settings |
+178px | tab strip |
| 768×1024 | /agents/{name} |
+132px | NAV.-mb-px.flex :: "Overview Tasks Chat Repor…" |
| ≥1024px | all pages | 0 | — |
Dashboard (all three modes), Library, Operations and Workspace are clean at every size — so this is specific to these two tab strips.
Note that Agent Detail already uses OverflowTabs (#1114), which is meant to collapse overflow into a "More ▾" menu. At 375px the overflowing element is the "More" button, so the collapse is not preventing body overflow at narrow widths.
Toolbar/stats overlap at 640px (grid mode)
Reproduced independently via getBoundingClientRect():
viewport 640 · grid mode
stat "agents" x 94.5 → 132.9 (y 79)
button "Tags" x 103.4 → 178.6 (y 77)
→ ~30px horizontal overlap in the same vertical band
Create Agent also ends at x=95.4 against a stat starting at x=94.5 — touching.
This is exactly what e2e/dashboard-stats-overflow.spec.js (#1830) exists to catch; the spec measured 9px at its own layout and currently fails on dev.
Acceptance Criteria
-
document.documentElement.scrollWidth === clientWidthon/settingsand/agents/{name}at 375px and 768px - Tab strips scroll inside their own
overflow-x: autocontainer, or collapse, rather than widening the body -
OverflowTabscollapses correctly at 375px — the "More" trigger itself must fit - Grid toolbar controls and the stats cluster never overlap at any viewport;
e2e/dashboard-stats-overflow.spec.jspasses - Verified in both light and dark themes
Technical Notes
src/frontend/src/components/OverflowTabs.vue(Agent Detail tabs: overflow into a "More" dropdown instead of horizontal scroll #1114)- Settings tab strip and Agent Detail tab nav
- Dashboard chassis toolbar / stats cluster
- Existing spec:
src/frontend/e2e/dashboard-stats-overflow.spec.js(bug: Dashboard stats bar — right controls overlap host telemetry below ~1170px effective width #1830) — currently red, will serve as the regression gate - Design system contract:
docs/memory/design-system-contract.md
Activity
dolho commentedon Sep 14, 2026
/claim
github-actions commentedon Sep 14, 2026
Claimed by @dolho. Label
status-in-progressadded.Next steps:
feature/2197-<short-slug>Fixes #2197dolho commentedon Sep 14, 2026
Handled as a stacked draft: #2782 (on #2781 / #1925 → #2780 / #1924 → #2778 / #1923).
The report names the wrong element, and it is worth recording why.
OverflowTabswas collapsing correctly the whole time, 375px included — I asserted the More trigger fits its container. What the sweep found was the primitive's hidden mirror row: awidth: max-contentmeasuring row inside a0×0; overflow: hiddenbox, invisible to the user and toscrollWidthalike, but reported as by far the widest element by any probe that does not skip clipped subtrees. My first probe reproduced the identical artifact before I filtered for clipping, so this is a trap in the measurement, not a mistake in the report.Measured properly, the causes are rigid non-wrapping flex rows:
AgentHeaderrows (identity + Workspace/Talk/Running, toggles + Tags + live CPU/MEM/uptime, lifetime cost) — ~790px of min-content combined<select>:flex-1with defaultmin-width: auto, whose min-content is its widest option (~417px).min-w-0is the whole fix.The Dashboard overlap is the same shape one level up. #1830 made the stats cluster elastic so it degrades rather than clips — but elastic with no floor collapses to zero, so the pressure never reached the controls and the row never wrapped. At 640px: stats cluster 0px wide (its clipped children still under the controls' first button — the 8px the spec reports) while the controls sat pinned at 692px max-content, ~70px past the row's right edge. Fixed by wrapping the row, giving the stats cluster the ladder's own agents-only floor (~71px) so the overflow becomes a wrap, and letting the controls shrink and wrap their own buttons. Single 30px row above ~900px is unchanged; at 640 the stats cluster now gets full width and shows more than before.
All five ACs verified against a local dev instance:
scrollWidth <= clientWidthon Settings, Agent Detail, Dashboard, Operations and Library at 375/640/768/1024, in both themes.e2e/dashboard-stats-overflow.spec.js— red ondev, green here.e2e/body-horizontal-overflow.spec.jsas the durable gate. It measures the document scroll width and names the widest unclipped element on failure, precisely because an element-shaped assertion is what produced the wrong diagnosis.Two things worth review attention:
/api/users/me, Agent Detail's stats behind the poll), so on a fixed settle the Settings arm passed with its own fix reverted. Thereadypredicates are load-bearing, not politeness.smoke.spec.js › @smoke api keys page loadsfails on plaindevas well (verified by buildingorigin/devagainst the same backend) — pre-existing, out of scope, probably worth its own issue.fix(ui): stop Settings, Agent Detail and the Dashboard header widenin…
fix(ui): stop Settings, Agent Detail and the Dashboard header widenin…
fix(ui): stop Settings, Agent Detail and the Dashboard header widenin…
fix(ui): stop Settings, Agent Detail and the Dashboard header widenin…
fix(ui): stop Settings, Agent Detail and the Dashboard header widenin…
fix(ui): stop Settings, Agent Detail and the Dashboard header widenin…
merge-train: two comments describe the pre-#2197 layout; align them w…
fix(ui): stop Settings, Agent Detail and the Dashboard header widenin…
fix(ui): Overview trends header wraps at 375px; agent-header e2e name…
feat(ui): agent header — repo, tags and a context chart back; Talk an…