@@ -224,7 +224,7 @@ const Sidebar = React.forwardRef<
224
224
return (
225
225
< div
226
226
ref = { ref }
227
- className = 'group peer hidden md:block text-sidebar-foreground'
227
+ className = 'group peer hidden text-sidebar-foreground md:block '
228
228
data-state = { state }
229
229
data-collapsible = { state === 'collapsed' ? collapsible : '' }
230
230
data-variant = { variant }
@@ -233,7 +233,7 @@ const Sidebar = React.forwardRef<
233
233
{ /* This is what handles the sidebar gap on desktop */ }
234
234
< div
235
235
className = { cn (
236
- 'duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear' ,
236
+ 'relative h-svh w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear' ,
237
237
'group-data-[collapsible=offcanvas]:w-0' ,
238
238
'group-data-[side=right]:rotate-180' ,
239
239
variant === 'floating' || variant === 'inset'
@@ -243,7 +243,7 @@ const Sidebar = React.forwardRef<
243
243
/>
244
244
< div
245
245
className = { cn (
246
- 'duration-200 fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex' ,
246
+ 'fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex' ,
247
247
side === 'left'
248
248
? 'left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]'
249
249
: 'right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]' ,
@@ -448,7 +448,7 @@ const SidebarGroupLabel = React.forwardRef<
448
448
ref = { ref }
449
449
data-sidebar = 'group-label'
450
450
className = { cn (
451
- 'duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0' ,
451
+ 'flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0' ,
452
452
'group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0' ,
453
453
className
454
454
) }
@@ -640,7 +640,7 @@ const SidebarMenuBadge = React.forwardRef<
640
640
ref = { ref }
641
641
data-sidebar = 'menu-badge'
642
642
className = { cn (
643
- 'absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none ' ,
643
+ 'pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground' ,
644
644
'peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground' ,
645
645
'peer-data-[size=sm]/menu-button:top-1' ,
646
646
'peer-data-[size=default]/menu-button:top-1.5' ,
@@ -668,7 +668,7 @@ const SidebarMenuSkeleton = React.forwardRef<
668
668
< div
669
669
ref = { ref }
670
670
data-sidebar = 'menu-skeleton'
671
- className = { cn ( 'rounded-md h-8 flex gap-2 px-2 items-center ' , className ) }
671
+ className = { cn ( 'flex h-8 items-center gap-2 rounded-md px-2 ' , className ) }
672
672
{ ...props }
673
673
>
674
674
{ showIcon && (
@@ -678,7 +678,7 @@ const SidebarMenuSkeleton = React.forwardRef<
678
678
/>
679
679
) }
680
680
< Skeleton
681
- className = 'h-4 flex-1 max-w-[--skeleton-width]'
681
+ className = 'h-4 max-w-[--skeleton-width] flex-1 '
682
682
data-sidebar = 'menu-skeleton-text'
683
683
style = {
684
684
{
0 commit comments