mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-27 13:47:56 -05:00
Fix WeaponSelect jank
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user