fix: use new attachment system for post actions
This commit is contained in:
1 file changed
+4
-9
@@ -82,20 +82,16 @@
|
|||||||
{/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
|
|
||||||
class="aspect-square w-max m-1 grid place-items-center"
|
|
||||||
onclick={e => e.stopPropagation()}
|
|
||||||
>
|
|
||||||
<Menu>
|
<Menu>
|
||||||
{#snippet target()}
|
{#snippet target(attachment)}
|
||||||
<Button
|
<Button
|
||||||
|
{@attach attachment}
|
||||||
aria-label={$t('post.actions.more.label')}
|
aria-label={$t('post.actions.more.label')}
|
||||||
color="tertiary"
|
color="tertiary"
|
||||||
size="custom"
|
size="custom"
|
||||||
class="w-full h-full"
|
class="w-6 h-6 self-center"
|
||||||
|
data-autoclose="false"
|
||||||
>
|
>
|
||||||
{#snippet prefix()}
|
{#snippet prefix()}
|
||||||
<Icon
|
<Icon
|
||||||
@@ -120,7 +116,6 @@
|
|||||||
{$t('filter.location.local')}
|
{$t('filter.location.local')}
|
||||||
</MenuButton>
|
</MenuButton>
|
||||||
</Menu>
|
</Menu>
|
||||||
</div>
|
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
{#if profile.current?.jwt}
|
{#if profile.current?.jwt}
|
||||||
|
|||||||
Reference in new issue
Block a user