update separator component

main
TZGyn 1 year ago
parent 65c3075454
commit c73080defc
Signed by: TZGyn
GPG Key ID: 122EAF77AE81FD4A

Binary file not shown.

@ -1,7 +1,7 @@
import Root from './separator.svelte'
import Root from "./separator.svelte";
export {
Root,
//
Root as Separator,
}
};

@ -1,6 +1,6 @@
<script lang="ts">
import { Separator as SeparatorPrimitive } from 'bits-ui'
import { cn } from '$lib/utils'
import { cn } from '$lib/utils.js'
type $$Props = SeparatorPrimitive.Props
@ -12,10 +12,10 @@
<SeparatorPrimitive.Root
class={cn(
'shrink-0 bg-border',
'bg-border shrink-0',
orientation === 'horizontal'
? 'h-[1px] w-full'
: 'h-full w-[1px]',
: 'min-h-full w-[1px] self-stretch',
className,
)}
{orientation}

Loading…
Cancel
Save