🐛(frontend) keep the admin panel in place when changing a setting

React Aria renders the radio and switch inputs visually hidden and
absolutely positioned. Their labels were not positioned, so in the
side panel the inputs were anchored to the aside and did not scroll
with its content. Focusing one made Chrome scroll the aside, which
has no scrollbar, hiding the panel content.

Position the labels so each hidden input stays inside its control.
This commit is contained in:
Roee Sivan
2026-10-11 15:56:54 +03:00
committed by aleb_the_flash
parent 86d97b427c
commit 531774fbda
3 changed files with 5 additions and 0 deletions
+1
View File
@@ -28,6 +28,7 @@ and this project adheres to
- 🔒️(backend) sign lobby participant id
- 🐛(frontend) omit the default speaker id sent to LiveKit
- 🐛(frontend) play the speaker test when no output is picked
- 🐛(frontend) keep the admin panel in place when changing a setting #1804
## [1.34.0] - 2026-10-07
+2
View File
@@ -9,6 +9,8 @@ import { type StyledVariantProps } from '@/styled-system/types'
const StyledRadio = styled(RACRadio, {
base: {
display: 'flex',
// anchor the visually hidden input, so it scrolls with the radio
position: 'relative',
alignItems: 'center',
gap: 0.375,
forcedColorAdjust: 'none',
+2
View File
@@ -9,6 +9,8 @@ import { RiCheckLine, RiCloseFill } from '@remixicon/react'
const StyledSwitch = styled(RACSwitch, {
base: {
display: 'flex',
// anchor the visually hidden input, so it scrolls with the switch
position: 'relative',
alignItems: 'center',
gap: '0.571rem',
color: 'black',