design: improve looks of entityheaders
This commit is contained in:
5 files changed
+30
-32
No files matched your search
@@ -153,7 +153,7 @@
|
|||||||
"avatar": "Avatar",
|
"avatar": "Avatar",
|
||||||
"banner": "Banner",
|
"banner": "Banner",
|
||||||
"email": "Email",
|
"email": "Email",
|
||||||
"matrix": "Matrix user",
|
"matrix": "Chat on Matrix",
|
||||||
"showNSFW": "Show NSFW content",
|
"showNSFW": "Show NSFW content",
|
||||||
"scores": "Show scores",
|
"scores": "Show scores",
|
||||||
"bot": "Bot account",
|
"bot": "Bot account",
|
||||||
|
|||||||
@@ -66,7 +66,7 @@
|
|||||||
{width}
|
{width}
|
||||||
{title}
|
{title}
|
||||||
class={[
|
class={[
|
||||||
'aspect-square object-cover overflow-hidden shrink-0 bg-slate-100 dark:bg-zinc-900',
|
'aspect-square object-cover overflow-hidden shrink-0',
|
||||||
circle === true ? 'rounded-full' : circle === false ? 'rounded-lg' : '',
|
circle === true ? 'rounded-full' : circle === false ? 'rounded-lg' : '',
|
||||||
|
|
||||||
clazz,
|
clazz,
|
||||||
|
|||||||
@@ -69,7 +69,7 @@
|
|||||||
alt={name}
|
alt={name}
|
||||||
circle={avatarCircle}
|
circle={avatarCircle}
|
||||||
class={[
|
class={[
|
||||||
'ring-slate-25 bg-slate-25 dark:bg-zinc-925 ring-2 relative dark:ring-zinc-950',
|
'relative',
|
||||||
'-mt-8',
|
'-mt-8',
|
||||||
!avatarCircle && 'rounded-xl @md:rounded-3xl!',
|
!avatarCircle && 'rounded-xl @md:rounded-3xl!',
|
||||||
]}
|
]}
|
||||||
|
|||||||
@@ -45,27 +45,8 @@
|
|||||||
<Header pageHeader class="lg:flex-row justify-between flex-col">
|
<Header pageHeader class="lg:flex-row justify-between flex-col">
|
||||||
{$t('routes.inbox.title')}
|
{$t('routes.inbox.title')}
|
||||||
|
|
||||||
<div class="flex gap-2 tracking-normal">
|
{#snippet extended()}
|
||||||
<Button
|
<div class="flex gap-2 tracking-normal items-end">
|
||||||
onclick={() => goto(page.url, { invalidateAll: true })}
|
|
||||||
rounding="2xl"
|
|
||||||
size="square-lg"
|
|
||||||
aria-label={$t('common.refresh')}
|
|
||||||
icon={ArrowPath}
|
|
||||||
></Button>
|
|
||||||
<Button
|
|
||||||
onclick={markAllAsRead}
|
|
||||||
loading={markingAsRead}
|
|
||||||
disabled={markingAsRead || data.inbox.value.length == 0}
|
|
||||||
color="primary"
|
|
||||||
icon={Check}
|
|
||||||
size="lg"
|
|
||||||
>
|
|
||||||
{$t('routes.inbox.markAsRead')}
|
|
||||||
</Button>
|
|
||||||
</div>
|
|
||||||
</Header>
|
|
||||||
|
|
||||||
<Select
|
<Select
|
||||||
class="relative"
|
class="relative"
|
||||||
bind:value={
|
bind:value={
|
||||||
@@ -89,8 +70,26 @@
|
|||||||
<Option value="false">{$t('filter.location.all')}</Option>
|
<Option value="false">{$t('filter.location.all')}</Option>
|
||||||
<Option value="true">{$t('filter.unread')}</Option>
|
<Option value="true">{$t('filter.unread')}</Option>
|
||||||
</Select>
|
</Select>
|
||||||
|
<div class="flex-1"></div>
|
||||||
<div class="h-3 sm:h-6"></div>
|
<Button
|
||||||
|
onclick={markAllAsRead}
|
||||||
|
loading={markingAsRead}
|
||||||
|
disabled={markingAsRead || data.inbox.value.length == 0}
|
||||||
|
color="primary"
|
||||||
|
icon={Check}
|
||||||
|
size="lg"
|
||||||
|
>
|
||||||
|
{$t('routes.inbox.markAsRead')}
|
||||||
|
</Button>
|
||||||
|
<Button
|
||||||
|
onclick={() => goto(page.url, { invalidateAll: true })}
|
||||||
|
size="square-lg"
|
||||||
|
aria-label={$t('common.refresh')}
|
||||||
|
icon={ArrowPath}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
{/snippet}
|
||||||
|
</Header>
|
||||||
|
|
||||||
{#if !data.inbox?.value || (data.inbox.value?.length ?? 0) == 0}
|
{#if !data.inbox?.value || (data.inbox.value?.length ?? 0) == 0}
|
||||||
<Placeholder
|
<Placeholder
|
||||||
|
|||||||
@@ -123,11 +123,10 @@
|
|||||||
color="transparent"
|
color="transparent"
|
||||||
rounding="2xl"
|
rounding="2xl"
|
||||||
padding="none"
|
padding="none"
|
||||||
class="bg-white dark:bg-zinc-950 dark:border-t-zinc-900
|
class="bg-white dark:bg-zinc-950 dark:border-t-zinc-900 w-full overflow-auto relative flex-1"
|
||||||
w-full overflow-auto relative h-full"
|
|
||||||
>
|
>
|
||||||
<div class="h-full overflow-auto" bind:this={chatWindow}>
|
<div class=" overflow-auto" bind:this={chatWindow}>
|
||||||
<ul id="chat-window" class=" h-full flex flex-col gap-1 flex-1 px-4 py-4">
|
<ul id="chat-window" class=" flex flex-col gap-1 flex-1 px-4 py-4">
|
||||||
<div class="mt-auto"></div>
|
<div class="mt-auto"></div>
|
||||||
<p class="mx-auto mt-auto text-slate-400 dark:text-zinc-600 text-center">
|
<p class="mx-auto mt-auto text-slate-400 dark:text-zinc-600 text-center">
|
||||||
{$t('routes.inbox.messages.conversation', {
|
{$t('routes.inbox.messages.conversation', {
|
||||||
@@ -203,8 +202,8 @@
|
|||||||
<MarkdownEditor
|
<MarkdownEditor
|
||||||
previewButton={false}
|
previewButton={false}
|
||||||
bind:value={textbox.message}
|
bind:value={textbox.message}
|
||||||
class="flex-1"
|
class="flex-1 rounded-xl"
|
||||||
></MarkdownEditor>
|
/>
|
||||||
{:else}
|
{:else}
|
||||||
<Button
|
<Button
|
||||||
onclick={() => (settings.messages.fullMarkdown = true)}
|
onclick={() => (settings.messages.fullMarkdown = true)}
|
||||||
|
|||||||
Reference in new issue
Block a user