@@ -2,6 +2,7 @@ import * as React from "react"
22import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu"
33import { CheckIcon , ChevronRightIcon , DotFilledIcon } from "@radix-ui/react-icons"
44
5+ import { portalRoot } from "@/lib/portal-root"
56import { cn } from "@/lib/utils"
67
78const DropdownMenu = DropdownMenuPrimitive . Root
@@ -44,7 +45,7 @@ const DropdownMenuSubContent = React.forwardRef<
4445 < DropdownMenuPrimitive . SubContent
4546 ref = { ref }
4647 className = { cn (
47- "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] overflow-hidden rounded-md border border-neutral-200 bg-white p-1 text-neutral-950 shadow-lg dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50" ,
48+ "ups-db z-50 min-w-[8rem] overflow-hidden rounded-md border border-neutral-200 bg-white p-1 text-neutral-950 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50" ,
4849 className
4950 ) }
5051 { ...props }
@@ -56,12 +57,12 @@ const DropdownMenuContent = React.forwardRef<
5657 React . ElementRef < typeof DropdownMenuPrimitive . Content > ,
5758 React . ComponentPropsWithoutRef < typeof DropdownMenuPrimitive . Content >
5859> ( ( { className, sideOffset = 4 , ...props } , ref ) => (
59- < DropdownMenuPrimitive . Portal >
60+ < DropdownMenuPrimitive . Portal container = { portalRoot } >
6061 < DropdownMenuPrimitive . Content
6162 ref = { ref }
6263 sideOffset = { sideOffset }
6364 className = { cn (
64- "z-50 min-w-[8rem] overflow-hidden rounded-md border border-neutral-200 bg-white p-1 text-neutral-950 shadow-md dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50" ,
65+ "ups-db z-50 min-w-[8rem] overflow-hidden rounded-md border border-neutral-200 bg-white p-1 text-neutral-950 shadow-md dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50" ,
6566 "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2" ,
6667 className
6768 ) }
0 commit comments