design: improve looks of entityheaders

This commit is contained in:
Xylight committed 2025-11-02 18:25:25 -08:00
1 parent 3b76cba87a
commit d7e63f90f8
5 files changed
+51 -53

No files matched your search

+1 -1
View File
@@ -153,7 +153,7 @@
"avatar": "Avatar",
"banner": "Banner",
"email": "Email",
"matrix": "Matrix user",
"matrix": "Chat on Matrix",
"showNSFW": "Show NSFW content",
"scores": "Show scores",
"bot": "Bot account",
+1 -1
View File
@@ -66,7 +66,7 @@
{width}
{title}
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' : '',
clazz,
+1 -1
View File
@@ -69,7 +69,7 @@
alt={name}
circle={avatarCircle}
class={[
'ring-slate-25 bg-slate-25 dark:bg-zinc-925 ring-2 relative dark:ring-zinc-950',
'relative',
'-mt-8',
!avatarCircle && 'rounded-xl @md:rounded-3xl!',
]}
+43 -44
View File
@@ -45,52 +45,51 @@
<Header pageHeader class="lg:flex-row justify-between flex-col">
{$t('routes.inbox.title')}
<div class="flex gap-2 tracking-normal">
<Button
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
class="relative"
bind:value={
() => data.unreadOnly.value.toString(),
(v) => (data.unreadOnly.value = v == 'true')
}
onchange={() =>
searchParam(
page.url,
'unreadOnly',
data.unreadOnly.value ? 'true' : 'false',
'page',
)}
>
{#snippet customLabel()}
<div class="flex items-center gap-1">
<Icon src={Funnel} size="15" mini />
{$t('filter.filter')}
{#snippet extended()}
<div class="flex gap-2 tracking-normal items-end">
<Select
class="relative"
bind:value={
() => data.unreadOnly.value.toString(),
(v) => (data.unreadOnly.value = v == 'true')
}
onchange={() =>
searchParam(
page.url,
'unreadOnly',
data.unreadOnly.value ? 'true' : 'false',
'page',
)}
>
{#snippet customLabel()}
<div class="flex items-center gap-1">
<Icon src={Funnel} size="15" mini />
{$t('filter.filter')}
</div>
{/snippet}
<Option value="false">{$t('filter.location.all')}</Option>
<Option value="true">{$t('filter.unread')}</Option>
</Select>
<div class="flex-1"></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}
<Option value="false">{$t('filter.location.all')}</Option>
<Option value="true">{$t('filter.unread')}</Option>
</Select>
<div class="h-3 sm:h-6"></div>
</Header>
{#if !data.inbox?.value || (data.inbox.value?.length ?? 0) == 0}
<Placeholder
@@ -123,11 +123,10 @@
color="transparent"
rounding="2xl"
padding="none"
class="bg-white dark:bg-zinc-950 dark:border-t-zinc-900
w-full overflow-auto relative h-full"
class="bg-white dark:bg-zinc-950 dark:border-t-zinc-900 w-full overflow-auto relative flex-1"
>
<div class="h-full overflow-auto" bind:this={chatWindow}>
<ul id="chat-window" class=" h-full flex flex-col gap-1 flex-1 px-4 py-4">
<div class=" overflow-auto" bind:this={chatWindow}>
<ul id="chat-window" class=" flex flex-col gap-1 flex-1 px-4 py-4">
<div class="mt-auto"></div>
<p class="mx-auto mt-auto text-slate-400 dark:text-zinc-600 text-center">
{$t('routes.inbox.messages.conversation', {
@@ -203,8 +202,8 @@
<MarkdownEditor
previewButton={false}
bind:value={textbox.message}
class="flex-1"
></MarkdownEditor>
class="flex-1 rounded-xl"
/>
{:else}
<Button
onclick={() => (settings.messages.fullMarkdown = true)}