feat: move class prop to wrapper
This commit is contained in:
@@ -72,10 +72,11 @@ $effect(() => {
|
|||||||
|
|
||||||
{#if !hidden}
|
{#if !hidden}
|
||||||
{#if responsive.isMobileOrTablet}
|
{#if responsive.isMobileOrTablet}
|
||||||
|
<div class={className}>
|
||||||
<Popover.Root bind:open>
|
<Popover.Root bind:open>
|
||||||
<Popover.Trigger>
|
<Popover.Trigger>
|
||||||
{#snippet child({ props })}
|
{#snippet child({ props })}
|
||||||
<Button class={className} variant="primary" {...props}>
|
<Button variant="primary" {...props}>
|
||||||
{#snippet icon()}
|
{#snippet icon()}
|
||||||
<Settings2Icon class="size-4" />
|
<Settings2Icon class="size-4" />
|
||||||
{/snippet}
|
{/snippet}
|
||||||
@@ -140,6 +141,7 @@ $effect(() => {
|
|||||||
</Popover.Content>
|
</Popover.Content>
|
||||||
</Popover.Portal>
|
</Popover.Portal>
|
||||||
</Popover.Root>
|
</Popover.Root>
|
||||||
|
</div>
|
||||||
{:else}
|
{:else}
|
||||||
<div
|
<div
|
||||||
class={cn('w-full md:w-auto', className)}
|
class={cn('w-full md:w-auto', className)}
|
||||||
|
|||||||
Reference in New Issue
Block a user