impr: switch menus to attachment based vs cursed div wrapper

This commit is contained in:
James Xylight committed 2025-08-28 21:18:43 -07:00
1 parent 078fdc2c71
commit 2891c68494
20 files changed
+93 -93

No files matched your search

+2 -1
View File
@@ -171,8 +171,9 @@
</span>
</div>
<Menu placement="bottom-end">
{#snippet target()}
{#snippet target(attachment)}
<Button
{@attach attachment}
size="square-md"
color="tertiary"
class="justify-self-end ml-auto z-50"
+2 -2
View File
@@ -188,8 +188,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')}
@@ -120,8 +120,8 @@
{#if site.data && formData.discussion_languages}
<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')}
+2 -1
View File
@@ -48,8 +48,9 @@
]}
>
<Menu class="flex-1" placement="bottom-end">
{#snippet target()}
{#snippet target(attachment)}
<Button
{@attach attachment}
aria-label={$t('post.actions.more.label')}
size="square-sm"
color="none"
+2 -2
View File
@@ -240,8 +240,8 @@
{/if}
{#if isAdmin(profile.current?.user)}
<Menu class="ml-auto" placement="bottom-end">
{#snippet target()}
<Button size="sm" rounding="pill">
{#snippet target(attachment)}
<Button {@attach attachment} size="sm" rounding="pill">
<ShieldIcon width={16} filled />
{$t('moderation.label')}
</Button>