From 355a1a3314aebfcf0a6320e2d478c476a06f8fee Mon Sep 17 00:00:00 2001 From: zurdi Date: Wed, 23 Sep 2026 18:19:31 +0200 Subject: [PATCH] fix(v2): inset the gallery list row focus ring (code-review) Now that desktop list rows run to the scroller's left edge, the generic outset focus ring lost its left side to the scroller's clip. Paint it inset, as the platform and collection rows already do. Also drop a `left: 0` on the pinned header glass that changed nothing, since the scroller clips that overhang anyway. Co-Authored-By: Claude Opus 5.5 --- frontend/src/v2/components/Gallery/GalleryShell.vue | 4 +--- frontend/src/v2/components/Gallery/GameListRow.vue | 7 +++++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/frontend/src/v2/components/Gallery/GalleryShell.vue b/frontend/src/v2/components/Gallery/GalleryShell.vue index 1474b3a28..d18c1b65d 100644 --- a/frontend/src/v2/components/Gallery/GalleryShell.vue +++ b/frontend/src/v2/components/Gallery/GalleryShell.vue @@ -1309,10 +1309,8 @@ html[data-bp~="md-and-up"] .r-v2-shell { viewport. */ min-width: calc(var(--r-list-min-w) + var(--r-list-bleed-start, 0px)); } -/* The header already reaches the left edge, so its pinned glass starts there - and runs under the strip column, out to the right edge. */ +/* Its pinned glass also runs under the strip column, out to the right edge. */ .r-v2-shell__list-header::before { - left: 0; right: calc(-1 * (var(--r-row-pad) + var(--r-v2-shell-strip))); } diff --git a/frontend/src/v2/components/Gallery/GameListRow.vue b/frontend/src/v2/components/Gallery/GameListRow.vue index 2af4875a9..9bc0efe6f 100644 --- a/frontend/src/v2/components/Gallery/GameListRow.vue +++ b/frontend/src/v2/components/Gallery/GameListRow.vue @@ -905,6 +905,13 @@ function onRowPointerDown(e: PointerEvent) { background: color-mix(in srgb, var(--r-color-brand-primary) 22%, transparent); } +/* Inset, like the platform and collection rows: the row runs to the screen + edge, where the scroller would clip an outset ring. */ +.game-list-row:focus-visible { + outline: none; + box-shadow: inset 0 0 0 2px var(--r-color-brand-primary); +} + /* Select cell — checkbox column. Empty when the row is in skeleton mode so the chrome only appears once a real row is loaded. */ .game-list-row__select {