design: impr message system and add marking as read
This commit is contained in:
7 files changed
+88
-88
No files matched your search
@@ -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}}",
|
||||
|
||||
@@ -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>
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user