♻️(frontend) refactor select to show arrow up when menu opens upward

Update select toggle device component used in conference to display
upward arrow when dropdown menu opens above the select component.

Improves visual consistency by matching arrow direction with actual
menu opening direction, providing clearer user interface feedback.
This commit is contained in:
lebaudantoine
2025-08-11 12:21:32 +02:00
committed by aleb_the_flash
parent 361de29780
commit 56ec2dd8cb

View File

@@ -5,7 +5,7 @@ import {
UseTrackToggleProps,
} from '@livekit/components-react'
import { Button, Menu, MenuList } from '@/primitives'
import { RiArrowDownSLine } from '@remixicon/react'
import { RiArrowUpSLine } from '@remixicon/react'
import {
LocalAudioTrack,
LocalVideoTrack,
@@ -150,7 +150,7 @@ export const SelectToggleDevice = <T extends ToggleSource>({
: 'error2'
}
>
<RiArrowDownSLine />
<RiArrowUpSLine />
</Button>
<MenuList
items={devices.map((d) => ({