@@ -10,7 +10,7 @@ function Command({ className, ...props }: React.ComponentProps<typeof CommandPri
1010 return (
1111 < CommandPrimitive
1212 data-slot = "command"
13- className = { cn ( "bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md" , className ) }
13+ className = { cn ( "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground " , className ) }
1414 { ...props }
1515 />
1616 ) ;
@@ -36,7 +36,7 @@ function CommandDialog({
3636 < DialogDescription > { description } </ DialogDescription >
3737 </ DialogHeader >
3838 < DialogContent className = { cn ( "overflow-hidden p-0" , className ) } showCloseButton = { showCloseButton } >
39- < Command className = "[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5" >
39+ < Command className = "**:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading ]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5" >
4040 { children }
4141 </ Command >
4242 </ DialogContent >
@@ -51,7 +51,7 @@ function CommandInput({ className, ...props }: React.ComponentProps<typeof Comma
5151 < CommandPrimitive . Input
5252 data-slot = "command-input"
5353 className = { cn (
54- "placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50" ,
54+ "flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50" ,
5555 className ,
5656 ) }
5757 { ...props }
@@ -64,7 +64,7 @@ function CommandList({ className, ...props }: React.ComponentProps<typeof Comman
6464 return (
6565 < CommandPrimitive . List
6666 data-slot = "command-list"
67- className = { cn ( "max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto " , className ) }
67+ className = { cn ( "max-h-[300px] scroll-py-1 overflow-y-auto overflow-x-hidden " , className ) }
6868 { ...props }
6969 />
7070 ) ;
@@ -79,7 +79,7 @@ function CommandGroup({ className, ...props }: React.ComponentProps<typeof Comma
7979 < CommandPrimitive . Group
8080 data-slot = "command-group"
8181 className = { cn (
82- "text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium " ,
82+ "overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:text-xs " ,
8383 className ,
8484 ) }
8585 { ...props }
@@ -88,15 +88,15 @@ function CommandGroup({ className, ...props }: React.ComponentProps<typeof Comma
8888}
8989
9090function CommandSeparator ( { className, ...props } : React . ComponentProps < typeof CommandPrimitive . Separator > ) {
91- return < CommandPrimitive . Separator data-slot = "command-separator" className = { cn ( "bg-border - mx-1 h-px" , className ) } { ...props } /> ;
91+ return < CommandPrimitive . Separator data-slot = "command-separator" className = { cn ( "- mx-1 h-px bg-border " , className ) } { ...props } /> ;
9292}
9393
9494function CommandItem ( { className, ...props } : React . ComponentProps < typeof CommandPrimitive . Item > ) {
9595 return (
9696 < CommandPrimitive . Item
9797 data-slot = "command-item"
9898 className = { cn (
99- "data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled =true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4" ,
99+ "relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden data-[disabled=true]:pointer-events-none data-[selected =true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 " ,
100100 className ,
101101 ) }
102102 { ...props }
@@ -106,7 +106,7 @@ function CommandItem({ className, ...props }: React.ComponentProps<typeof Comman
106106
107107function CommandShortcut ( { className, ...props } : React . ComponentProps < "span" > ) {
108108 return (
109- < span data-slot = "command-shortcut" className = { cn ( "text-muted-foreground ml-auto text-xs tracking-widest" , className ) } { ...props } />
109+ < span data-slot = "command-shortcut" className = { cn ( "ml-auto text-muted-foreground text-xs tracking-widest" , className ) } { ...props } />
110110 ) ;
111111}
112112
0 commit comments