mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
Use radix css var to limit desktop menu height (#12743)
This commit is contained in:
parent
da0f63f095
commit
7db6ed9ad5
@ -139,8 +139,18 @@ export default function GeneralSettings({ className }: GeneralSettingsProps) {
|
||||
</Tooltip>
|
||||
</Trigger>
|
||||
<Content
|
||||
style={
|
||||
isDesktop
|
||||
? {
|
||||
maxHeight:
|
||||
"var(--radix-dropdown-menu-content-available-height)",
|
||||
}
|
||||
: {}
|
||||
}
|
||||
className={
|
||||
isDesktop ? "mr-5 w-72" : "max-h-[75dvh] overflow-hidden p-2"
|
||||
isDesktop
|
||||
? "scrollbar-container mr-5 w-72 overflow-y-auto"
|
||||
: "max-h-[75dvh] overflow-hidden p-2"
|
||||
}
|
||||
>
|
||||
<div className="scrollbar-container w-full flex-col overflow-y-auto overflow-x-hidden">
|
||||
|
Loading…
Reference in New Issue
Block a user