From 181e7dbdd64ba9ce946c22a51039e1105de7f354 Mon Sep 17 00:00:00 2001 From: Cory Tyburski Date: Mon, 4 Nov 2024 20:07:13 -0500 Subject: [PATCH 1/2] Fix stacked margin classes CSS classes were not being properly recognized by UnoCSS. --- .../src/lib/registry/default/ui/sidebar/sidebar-inset.svelte | 2 +- .../src/lib/registry/new-york/ui/sidebar/sidebar-inset.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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..2995431b6 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-[variant=inset]:m-2 md:peer-[[data-state=collapsed][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", 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..2995431b6 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-[variant=inset]:m-2 md:peer-[[data-state=collapsed][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", className )} {...restProps} From 633b42776cb918a7d0a0573fd4d1c7b8a6f67750 Mon Sep 17 00:00:00 2001 From: Cory Tyburski Date: Wed, 13 Nov 2024 16:06:38 -0500 Subject: [PATCH 2/2] linting --- .../src/lib/registry/default/ui/sidebar/sidebar-inset.svelte | 2 +- .../src/lib/registry/new-york/ui/sidebar/sidebar-inset.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 2995431b6..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][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 2995431b6..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][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}