Files
sure/app/views/settings
Guillem Arias Fauste f499a3db01 fix(ds): .table-scroll — wide tables scroll instead of clipping (#2148)
* fix(ds): .table-scroll — wide tables scroll instead of clipping (#2137)

The LLM-usage "Recent Usage" table wrapped in `overflow-hidden`, so on narrow
viewports it pushed the Tokens/Cost columns off-screen with no way to reach them
(the audit's "no scroll affordance"). Ship a reusable `.table-scroll`:
`overflow-x: auto` plus a pure-CSS theme-aware scroll-shadow (cover gradients
scroll with the content and reveal an edge shadow only when there is more to
see), giving the affordance with no JS. Migrate the LLM-usage table as exemplar.

Verified: at a mobile width the table now scrolls (content 591px in a 329px
wrapper) with a scrollbar + edge shadow, instead of clipping.

Deferred: roll `.table-scroll` out to the other overflow tables — reports use a
nested container-inset / container wrapper, so the cover bg needs per-use tuning
via `--table-scroll-bg`.

* fix(a11y): make .table-scroll region keyboard-focusable

Add tabindex=0 + role=region + aria-label so keyboard-only users can focus the
horizontal scroll container and reach overflowed columns with arrow keys.
Addresses CodeRabbit review on #2148.
2026-06-04 22:10:21 +02:00
..