Fix WeaponSelect jank

This commit is contained in:
Kalle
2026-09-16 21:23:07 +03:00
parent bc9aca790b
commit 3442d9f8de
5 changed files with 73 additions and 30 deletions

View File

@@ -120,9 +120,13 @@
cursor: pointer;
outline: none;
/* long lists (every weapon) skip laying out and painting the options
scrolled out of view, keeping them in the accessibility tree */
scrolled out of view, keeping them in the accessibility tree; the skipped
ones must still be exactly as tall as the rendered ones or the list jumps
while scrolling, and as engines disagree on whether the intrinsic size
includes the padding, the height is pinned with a min-height instead */
content-visibility: auto;
contain-intrinsic-block-size: auto 33px;
--option-content-height: calc(var(--font-sm) * var(--line-height));
min-block-size: calc(var(--option-content-height) + 2 * var(--s-1-5));
&[data-disabled] {
color: var(--color-text-high);