fix: use new attachment system for post actions
This commit is contained in:
1 file changed
+32
-37
@@ -82,45 +82,40 @@
|
|||||||
{/snippet}
|
{/snippet}
|
||||||
{$t('post.actions.more.share')}
|
{$t('post.actions.more.share')}
|
||||||
</MenuButton>
|
</MenuButton>
|
||||||
<!--svelte-ignore a11y_no_static_element_interactions -->
|
|
||||||
<!--svelte-ignore a11y_click_events_have_key_events-->
|
|
||||||
{#if !post.post.local}
|
{#if !post.post.local}
|
||||||
<div
|
<Menu>
|
||||||
class="aspect-square w-max m-1 grid place-items-center"
|
{#snippet target(attachment)}
|
||||||
onclick={e => e.stopPropagation()}
|
<Button
|
||||||
>
|
{@attach attachment}
|
||||||
<Menu>
|
aria-label={$t('post.actions.more.label')}
|
||||||
{#snippet target()}
|
color="tertiary"
|
||||||
<Button
|
size="custom"
|
||||||
aria-label={$t('post.actions.more.label')}
|
class="w-6 h-6 self-center"
|
||||||
color="tertiary"
|
data-autoclose="false"
|
||||||
size="custom"
|
>
|
||||||
class="w-full h-full"
|
{#snippet prefix()}
|
||||||
>
|
<Icon
|
||||||
{#snippet prefix()}
|
src={EllipsisHorizontal}
|
||||||
<Icon
|
size="16"
|
||||||
src={EllipsisHorizontal}
|
micro
|
||||||
size="16"
|
class="text-slate-600 dark:text-zinc-400"
|
||||||
micro
|
/>
|
||||||
class="text-slate-600 dark:text-zinc-400"
|
{/snippet}
|
||||||
/>
|
</Button>
|
||||||
{/snippet}
|
{/snippet}
|
||||||
</Button>
|
<MenuButton onclick={() => share(true)}>
|
||||||
|
{#snippet prefix()}
|
||||||
|
<Icon src={GlobeAlt} size="16" micro />
|
||||||
{/snippet}
|
{/snippet}
|
||||||
<MenuButton onclick={() => share(true)}>
|
{$t('filter.location.global')}
|
||||||
{#snippet prefix()}
|
</MenuButton>
|
||||||
<Icon src={GlobeAlt} size="16" micro />
|
<MenuButton onclick={() => share(false)}>
|
||||||
{/snippet}
|
{#snippet prefix()}
|
||||||
{$t('filter.location.global')}
|
<Icon src={MapPin} size="16" micro />
|
||||||
</MenuButton>
|
{/snippet}
|
||||||
<MenuButton onclick={() => share(false)}>
|
{$t('filter.location.local')}
|
||||||
{#snippet prefix()}
|
</MenuButton>
|
||||||
<Icon src={MapPin} size="16" micro />
|
</Menu>
|
||||||
{/snippet}
|
|
||||||
{$t('filter.location.local')}
|
|
||||||
</MenuButton>
|
|
||||||
</Menu>
|
|
||||||
</div>
|
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
{#if profile.current?.jwt}
|
{#if profile.current?.jwt}
|
||||||
|
|||||||
Reference in new issue
Block a user