♻️(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:
committed by
aleb_the_flash
parent
361de29780
commit
56ec2dd8cb
@@ -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) => ({
|
||||
|
||||
Reference in New Issue
Block a user