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 <noreply@anthropic.com>
This commit is contained in:
zurdi
2026-09-23 18:19:31 +02:00
parent 2e17078397
commit 355a1a3314
2 changed files with 8 additions and 3 deletions

View File

@@ -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)));
}

View File

@@ -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 {