design: impr message system and add marking as read

This commit is contained in:
Xylight committed 2025-11-11 18:45:53 -08:00
1 parent 662c35c499
commit 1c75a5248e
7 files changed
+88 -88

No files matched your search

+26 -24
View File
@@ -222,28 +222,30 @@
</MenuButton>
</Menu>
<Menu placement="bottom-end">
{#snippet target(popover)}
<Button
{@attach popover}
title={$t('post.actions.more.label')}
color="ghost"
rounding="pill"
size="custom"
class={buttonSquare}
icon={EllipsisHorizontal}
></Button>
{/snippet}
{#snippet children(open)}
{#if open}
{#await import('./PostActionsMenu.svelte')}
<div class="p-8 w-full h-full grid place-items-center">
<Spinner width={20} />
</div>
{:then { default: PostActionsMenu }}
<PostActionsMenu bind:post {onhide} bind:editing />
{/await}
{/if}
{/snippet}
</Menu>
{#if profile.current.jwt}
<Menu placement="bottom-end">
{#snippet target(popover)}
<Button
{@attach popover}
title={$t('post.actions.more.label')}
color="ghost"
rounding="pill"
size="custom"
class={buttonSquare}
icon={EllipsisHorizontal}
></Button>
{/snippet}
{#snippet children(open)}
{#if open}
{#await import('./PostActionsMenu.svelte')}
<div class="p-8 w-full h-full grid place-items-center">
<Spinner width={20} />
</div>
{:then { default: PostActionsMenu }}
<PostActionsMenu bind:post {onhide} bind:editing />
{/await}
{/if}
{/snippet}
</Menu>
{/if}
</footer>