diff --git a/sites/docs/src/lib/registry/default/ui/sidebar/sidebar-inset.svelte b/sites/docs/src/lib/registry/default/ui/sidebar/sidebar-inset.svelte index b9cd447be..8091139fa 100644 --- a/sites/docs/src/lib/registry/default/ui/sidebar/sidebar-inset.svelte +++ b/sites/docs/src/lib/registry/default/ui/sidebar/sidebar-inset.svelte @@ -15,7 +15,7 @@ bind:this={ref} class={cn( "bg-background relative flex min-h-svh flex-1 flex-col", - "peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow", + "peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-[[data-state=collapsed][data-variant=inset]]:ml-2 md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow", className )} {...restProps} diff --git a/sites/docs/src/lib/registry/new-york/ui/sidebar/sidebar-inset.svelte b/sites/docs/src/lib/registry/new-york/ui/sidebar/sidebar-inset.svelte index b9cd447be..8091139fa 100644 --- a/sites/docs/src/lib/registry/new-york/ui/sidebar/sidebar-inset.svelte +++ b/sites/docs/src/lib/registry/new-york/ui/sidebar/sidebar-inset.svelte @@ -15,7 +15,7 @@ bind:this={ref} class={cn( "bg-background relative flex min-h-svh flex-1 flex-col", - "peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow", + "peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-[[data-state=collapsed][data-variant=inset]]:ml-2 md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow", className )} {...restProps}