design: make entityheaders not look like genuine garbage

This commit is contained in:
Xylight committed 2025-10-26 15:34:30 -07:00
1 parent 2c4aae47c7
commit 537e1c4cea
19 files changed
+209 -192

No files matched your search

+20 -16
View File
@@ -98,25 +98,29 @@
<Header pageHeader>
{$t('routes.accounts')}
{#snippet extended()}
<div class="flex">
<div class="flex gap-2 mr-auto items-center">
<div class="flex gap-2 items-center flex-wrap">
<Button
href="/accounts/login"
color="primary"
size="lg"
rounding="2xl"
icon={ArrowLeftOnRectangle}
>
{$t('account.login')}
</Button>
<Button href="/signup" size="lg" rounding="2xl" icon={Identification}>
{$t('account.signup')}
</Button>
{#if !LINKED_INSTANCE_URL}
<Button
href="/accounts/login"
rounding="pill"
color="primary"
icon={ArrowLeftOnRectangle}
href="/accounts/login/guest"
size="lg"
rounding="2xl"
icon={Plus}
>
{$t('account.login')}
{$t('account.addGuest')}
</Button>
<Button href="/signup" rounding="pill" icon={Identification}>
{$t('account.signup')}
</Button>
{#if !LINKED_INSTANCE_URL}
<Button href="/accounts/login/guest" rounding="pill" icon={Plus}>
{$t('account.addGuest')}
</Button>
{/if}
</div>
{/if}
</div>
{/snippet}
</Header>
+1 -1
View File
@@ -64,7 +64,7 @@
y: 16,
}}
>
<Material padding="none" rounding="none" class="rounded-3xl h-full">
<Material padding="none" rounding="3xl" class="h-full">
<CommunityItemBig {community} />
</Material>
</div>
+3 -5
View File
@@ -45,12 +45,11 @@
<Header pageHeader class="lg:flex-row justify-between flex-col">
{$t('routes.inbox.title')}
<div class="flex gap-2 tracking-normal items-center">
<div class="flex gap-2 tracking-normal">
<Button
onclick={() => goto(page.url, { invalidateAll: true })}
size="custom"
class="rounded-2xl h-9 aspect-square"
rounding="none"
rounding="2xl"
size="square-lg"
aria-label={$t('common.refresh')}
icon={ArrowPath}
></Button>
@@ -58,7 +57,6 @@
onclick={markAllAsRead}
loading={markingAsRead}
disabled={markingAsRead || data.inbox.value.length == 0}
rounding="pill"
color="primary"
icon={Check}
size="lg"
+1 -1
View File
@@ -94,7 +94,7 @@
{#snippet startChat()}
<Button
color="primary"
rounding="pill"
size="lg"
class="w-max"
onclick={() => (searchModal.open = !searchModal.open)}
>
+2 -2
View File
@@ -99,8 +99,8 @@
loading={batch.progress >= 0}
disabled={batch.progress >= 0 || data.items.value?.length == 0}
onclick={markAllAsResolved}
class="h-max ml-auto"
rounding="pill"
size="lg"
class="ml-auto"
color="primary"
>
<Icon src={Check} size="16" mini />
+3 -3
View File
@@ -74,8 +74,8 @@
importText = ''
importing = true
}}
rounding="pill"
icon={ArrowDownTray}
size="lg"
>
{$t('settings.import')}
</Button>
@@ -85,8 +85,8 @@
navigator?.clipboard?.writeText?.(json)
toast({ content: $t('toast.copied') })
}}
rounding="pill"
icon={ArrowUpTray}
size="lg"
>
{$t('settings.export')}
</Button>
@@ -108,8 +108,8 @@
],
})
}}
rounding="pill"
icon={ArrowPath}
size="lg"
>
{$t('settings.reset')}
</Button>
+3 -3
View File
@@ -64,7 +64,7 @@
onclick={() => {
importing = !importing
}}
rounding="pill"
size="lg"
disabled={themeData.current.id <= 0}
>
<Icon src={ArrowUpTray} size="16" mini />
@@ -77,7 +77,7 @@
)
toast({ content: 'Copied theme to clipboard.' })
}}
rounding="pill"
size="lg"
>
<Icon src={ArrowDownTray} size="16" mini />
{$t('settings.export')}
@@ -109,7 +109,7 @@
body: $t('routes.theme.resetWarning.description'),
})
}}
rounding="pill"
size="lg"
>
<Icon src={ArrowPath} size="16" mini />
{$t('settings.reset')}
+8 -10
View File
@@ -70,8 +70,7 @@
{#if profile.current?.user && profile.current.jwt && person.person.id != profile.current.user.local_user_view.person.id}
<div class="flex items-center gap-2 w-full flex-wrap">
<Button
size="sm"
rounding="pill"
size="lg"
color="primary"
href="/inbox/messages/{person.person.id}"
icon={Envelope}
@@ -80,8 +79,7 @@
</Button>
{#if person.person.matrix_user_id}
<Button
size="sm"
rounding="pill"
size="lg"
color="secondary"
href="https://matrix.to/#/{person.person.matrix_user_id}"
>
@@ -96,8 +94,8 @@
{#snippet target(attachment)}
<Button
{@attach attachment}
size="sm"
rounding="pill"
size="square-lg"
rounding="2xl"
icon={ShieldCheck}
>
{$t('moderation.label')}
@@ -130,11 +128,11 @@
{#snippet target(attachment)}
<Button
{@attach attachment}
size="custom"
class="h-8 w-8"
rounding="pill"
size="square-lg"
rounding="2xl"
icon={EllipsisHorizontal}
></Button>
aria-label={$t('post.actions.more')}
/>
{/snippet}
<MenuButton
color="danger-subtle"