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

+1 -1
View File
@@ -316,7 +316,7 @@
},
"postRedirect": {
"title": "Cross-server content",
"description": "That content does not originate from {{homeInstance}}. You can load it on your instance here.",
"description": "That content does not originate from {{homeInstance}}.",
"actions": {
"back": "Go back",
"fetch": "Locate post on {{homeInstance}}",
+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>
-1
View File
@@ -45,7 +45,6 @@
></TextInput>
{/if}
<Select
selectClass="h-[38px]"
baseClass="flex-1"
label={$t('form.time.duration')}
bind:value={duration}
@@ -43,6 +43,11 @@
none: '',
}
const interactiveClass = {
interactive: 'material-int',
none: '',
}
interface Props extends HTMLAttributes<HTMLElement> {
elevation?: Elevation
padding?: Padding