impr: switch menus to attachment based vs cursed div wrapper
This commit is contained in:
20 files changed
+93
-93
No files matched your search
@@ -270,8 +270,8 @@
|
||||
</Button>
|
||||
{/if}
|
||||
<Menu placement="top-end">
|
||||
{#snippet target()}
|
||||
<Button size="square-md" rounding="pill">
|
||||
{#snippet target(attachment)}
|
||||
<Button {@attach attachment} size="square-md" rounding="pill">
|
||||
{#snippet prefix()}
|
||||
<Icon src={EllipsisHorizontal} size="16" mini />
|
||||
{/snippet}
|
||||
|
||||
@@ -193,8 +193,8 @@
|
||||
{#if site.data}
|
||||
<div class="flex gap-2 flex-wrap flex-row">
|
||||
<Menu class="gap-px">
|
||||
{#snippet target()}
|
||||
<button type="button">
|
||||
{#snippet target(attachment)}
|
||||
<button {@attach attachment} type="button">
|
||||
<Badge color="blue-subtle">
|
||||
<Icon src={Plus} micro size="14" />
|
||||
{$t('common.add')}
|
||||
|
||||
@@ -170,8 +170,8 @@
|
||||
</Button>
|
||||
{/if}
|
||||
<Menu placement="top-end">
|
||||
{#snippet target()}
|
||||
<Button size="custom" rounding="pill" class="h-8.5 aspect-square">
|
||||
{#snippet target(attachment)}
|
||||
<Button {@attach attachment} size="custom" rounding="pill" class="h-8.5 aspect-square">
|
||||
{#snippet prefix()}
|
||||
<Icon src={EllipsisHorizontal} size="16" mini />
|
||||
{/snippet}
|
||||
|
||||
Reference in new issue
Block a user