diff --git a/src/components/ui/dropdown-menu.tsx b/src/components/ui/dropdown-menu.tsx index 3772e6f..1aa53c4 100644 --- a/src/components/ui/dropdown-menu.tsx +++ b/src/components/ui/dropdown-menu.tsx @@ -5,7 +5,15 @@ import { IconCheck, IconChevronRight, IconCircleFilled } from "@tabler/icons-rea import { portalRoot } from "@/lib/portal-root" import { cn } from "@/lib/utils" -const DropdownMenu = DropdownMenuPrimitive.Root +// Default to non-modal: modal dropdowns lock scroll via react-remove-scroll, which sets +// `position: relative` on . That breaks consumers (e.g. the console fullscreen view) that +// position a container absolutely against , collapsing its height while the menu is open. +const DropdownMenu = ({ + modal = false, + ...props +}: React.ComponentProps) => ( + +) const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger