The open-source CapCut alternative
style: dropdown menu
Maze Winther507d6a6a7e78
diff --git a/apps/web/src/app/globals.css b/apps/web/src/app/globals.cssindex e8727432..4f9bb10a 100644--- a/apps/web/src/app/globals.css+++ b/apps/web/src/app/globals.css@@ -43,7 +43,7 @@--foreground: 0 0% 98%;--card: 0 0% 3.9%;--card-foreground: 0 0% 98%;- --popover: 0 0% 3.9%;+ --popover: 0 0% 14.9%;--popover-foreground: 0 0% 98%;--primary: 0 0% 98%;--primary-foreground: 0 0% 9%;diff --git a/apps/web/src/components/ui/dropdown-menu.tsx b/apps/web/src/components/ui/dropdown-menu.tsxindex 2b653e3b..460bfc98 100644--- a/apps/web/src/components/ui/dropdown-menu.tsx+++ b/apps/web/src/components/ui/dropdown-menu.tsx@@ -66,7 +66,7 @@ const DropdownMenuContent = React.forwardRef<ref={ref}sideOffset={sideOffset}className={cn(- "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",+ "z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 bg-popover text-popover-foreground shadow-md","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",className)}@@ -77,13 +77,12 @@ const DropdownMenuContent = React.forwardRef<DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;const dropdownMenuItemVariants = cva(- "relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",+ "relative flex cursor-pointer select-none items-center gap-2 px-2 py-1.5 text-sm outline-none transition-opacity data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",{variants: {variant: {- default: "focus:bg-accent focus:text-accent-foreground",- destructive:- "text-destructive focus:bg-destructive focus:text-destructive-foreground",+ default: "focus:opacity-65 focus:text-accent-foreground",+ destructive: "text-destructive focus:text-destructive/80",},},defaultVariants: {@@ -181,7 +180,7 @@ const DropdownMenuSeparator = React.forwardRef<>(({ className, ...props }, ref) => (<DropdownMenuPrimitive.Separatorref={ref}- className={cn("-mx-1 my-1 h-px bg-muted", className)}+ className={cn("-mx-1 my-1 h-px bg-foreground/10", className)}{...props}/>));