fix: improve consistency for user headers

This commit is contained in:
James Xylight committed 2025-08-31 10:27:32 -07:00
1 parent 602fab0f1e
commit 8300e54ca3
6 files changed
+29 -19

No files matched your search

+1 -1
View File
@@ -60,7 +60,7 @@
<div class="flex flex-col gap-1"> <div class="flex flex-col gap-1">
{#if taglines && taglines.length > 0} {#if taglines && taglines.length > 0}
<Markdown <Markdown
class="pt-0!" class="pt-0! mx-3"
source={taglines[Math.floor(Math.random() * taglines.length)].content} source={taglines[Math.floor(Math.random() * taglines.length)].content}
/> />
{/if} {/if}
+2 -2
View File
@@ -65,7 +65,7 @@
color="tertiary" color="tertiary"
size="square-lg" size="square-lg"
rounding="pill" rounding="pill"
title={$t('post.actions.more.share')} aria-label={$t('post.actions.more.share')}
> >
{#snippet prefix()} {#snippet prefix()}
<Icon src={Share} size="20" micro /> <Icon src={Share} size="20" micro />
@@ -76,7 +76,7 @@
color="tertiary" color="tertiary"
size="square-lg" size="square-lg"
rounding="pill" rounding="pill"
title={$t('common.back')} aria-label={$t('common.back')}
> >
{#snippet prefix()} {#snippet prefix()}
<Icon src={XMark} size="20" micro /> <Icon src={XMark} size="20" micro />
+1 -1
View File
@@ -46,7 +46,7 @@
{#snippet extended()} {#snippet extended()}
<form class="" method="get" action="/"> <form class="" method="get" action="/">
<div class="flex flex-row gap-4"> <div class="flex flex-row gap-2">
{#if data.filters.value.type_} {#if data.filters.value.type_}
<Location <Location
name="type" name="type"
@@ -143,8 +143,7 @@
<Button <Button
loading={formData.addingModerator} loading={formData.addingModerator}
disabled={formData.addingModerator} disabled={formData.addingModerator}
size="lg" rounding="xl"
class="w-max shrink-0"
color="primary" color="primary"
submit submit
> >
+15 -6
View File
@@ -3,7 +3,7 @@
import Tabs from '$lib/components/ui/layout/pages/Tabs.svelte' import Tabs from '$lib/components/ui/layout/pages/Tabs.svelte'
import { t } from '$lib/i18n/translations' import { t } from '$lib/i18n/translations'
import { defaultSettings, settings } from '$lib/settings.svelte' import { defaultSettings, settings } from '$lib/settings.svelte'
import { Button, toast, Modal } from 'mono-svelte' import { Button, toast, Modal, modal, action } from 'mono-svelte'
import TextArea from 'mono-svelte/forms/TextArea.svelte' import TextArea from 'mono-svelte/forms/TextArea.svelte'
import { import {
ArrowDownTray, ArrowDownTray,
@@ -78,11 +78,20 @@
</Button> </Button>
<Button <Button
onclick={() => { onclick={() => {
toast({ modal({
content: $t('toast.resetSettings'), title: $t('settings.reset'),
action: () => { body: $t('toast.resetSettings'),
Object.assign(settings, defaultSettings) actions: [
}, action({
action: () => Object.assign(settings, defaultSettings),
close: true,
type: 'danger',
content: $t('settings.reset'),
}),
action({
content: $t('common.cancel'),
}),
],
}) })
}} }}
rounding="pill" rounding="pill"
+9 -7
View File
@@ -216,7 +216,7 @@
<Button <Button
size="sm" size="sm"
rounding="pill" rounding="pill"
color="secondary" color="primary"
href="/inbox/messages/{data.person_view.value.person.id}" href="/inbox/messages/{data.person_view.value.person.id}"
> >
{#snippet prefix()} {#snippet prefix()}
@@ -278,8 +278,8 @@
</Menu> </Menu>
{/if} {/if}
<Menu placement="bottom-end"> <Menu placement="bottom-end">
{#snippet target()} {#snippet target(attachment)}
<Button size="custom" class="h-7 w-7" rounding="pill"> <Button {@attach attachment} size="custom" class="h-8 w-8" rounding="pill">
{#snippet prefix()} {#snippet prefix()}
<Icon src={EllipsisHorizontal} size="16" mini /> <Icon src={EllipsisHorizontal} size="16" mini />
{/snippet} {/snippet}
@@ -305,9 +305,7 @@
{/snippet} {/snippet}
</EntityHeader> </EntityHeader>
</div> </div>
</Header> {#snippet extended()}
{/if}
<div class="flex flex-col gap-4 max-w-full w-full min-w-0"> <div class="flex flex-col gap-4 max-w-full w-full min-w-0">
<form <form
action={page.url.origin + page.url.pathname} action={page.url.origin + page.url.pathname}
@@ -335,6 +333,11 @@
onchange={() => sortForm?.requestSubmit()} onchange={() => sortForm?.requestSubmit()}
/> />
</form> </form>
</div>
{/snippet}
</Header>
{/if}
{#if data.items.value.length == 0} {#if data.items.value.length == 0}
<Placeholder <Placeholder
icon={PencilSquare} icon={PencilSquare}
@@ -356,5 +359,4 @@
bind:page={data.filters.value.page} bind:page={data.filters.value.page}
href={page => `?page=${page}`} href={page => `?page=${page}`}
/> />
</div>
</div> </div>