mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-23 04:09:04 +03:00
refactor(web): menu positioning
This commit is contained in:
committed by
Blake Blackshear
parent
19bd5ace7d
commit
f00628f4e5
@@ -95,7 +95,7 @@ export default function Select({ label, onChange, options: inputOptions = [], se
|
||||
value={options[selected]?.label}
|
||||
/>
|
||||
{showMenu ? (
|
||||
<Menu className="rounded-t-none" onDismiss={handleDismiss} relativeTo={ref}>
|
||||
<Menu className="rounded-t-none" onDismiss={handleDismiss} relativeTo={ref} widthRelative>
|
||||
{options.map(({ value, label }, i) => (
|
||||
<MenuItem key={value} label={label} focus={focused === i} onSelect={handleSelect} value={value} />
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user