mirror of
https://github.com/rommapp/romm.git
synced 2026-11-29 01:58:41 +01:00
The `size` middleware capped the panel with
`min(360px, var(--available-height, 360px))`, but `--available-height` is
never defined, so the cap was always a hard 360px no matter how much room
the activator actually had. `flip` then placed a 360px panel into a
smaller gap and the menu spilled past the viewport edge: at a 500px
viewport the search field could land 66px above the top, or the list 106px
below the bottom. Use floating-ui's real `availableHeight`, as RMenu
already does.
A multi-select without chips rendered each title and each "," separator as
a direct child of `.r-select__value`, a flex row with a 6px gap, so the
separator picked the gap up on both sides and the activator read "A , B".
Give the run its own box.
Also focus the in-panel search field with `preventScroll`: it autofocuses
on mount, which is before floating-ui places the panel, so the UA would
scroll to the panel's pre-placement box at the viewport origin.
The 2D/3D media labels disagreed in every locale ("Box art (2D)" vs
"3D box art"); settle on the parenthesised form.
Fixes #4000
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>