improved dropdown styling

This commit is contained in:
Oliver Bryan
2025-12-27 23:31:06 +00:00
parent 8e71520ed4
commit 276079b322

View File

@@ -97,8 +97,8 @@ function DropdownMenuItem({
"data-[variant=destructive]:focus:text-destructive",
"data-[variant=destructive]:*:[svg]:!text-destructive",
"[&_svg:not([class*='text-'])]:text-foreground relative",
"flex w-full cursor-pointer items-center gap-2 py-1.5 pr-8 pl-2",
"px-2 py-1.5 text-sm outline-hidden select-none",
"flex w-full cursor-pointer items-center gap-2",
"px-2 py-1 text-sm outline-hidden select-none",
"data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
"data-[inset]:pl-8 [&_svg]:pointer-events-none",
"[&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
@@ -182,7 +182,7 @@ function DropdownMenuLabel({
<DropdownMenuPrimitive.Label
data-slot="dropdown-menu-label"
data-inset={inset}
className={cn("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", className)}
className={cn("px-2 py-0 text-sm font-medium data-[inset]:pl-8", className)}
{...props}
/>
);