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 { export {
Root, Root,
// //
Root as Separator, Root as Separator,
} };

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

Loading…
Cancel
Save