fix: bugs with formatting in signup page

This commit is contained in:
James Xylight committed 2025-09-05 21:34:21 -07:00
1 parent 5f9617b172
commit 6166dbf3f4
3 files changed
+8 -3

No files matched your search

+5
View File
@@ -1,3 +1,8 @@
import { profile } from '$lib/auth.svelte.js'
import { redirect } from '@sveltejs/kit'
export const load = ({ url }) => {
if (!profile.current.jwt) redirect(302, '/login')
return { crosspost: Boolean(url.searchParams.get('crosspost')) }
}
+1 -1
View File
@@ -67,7 +67,7 @@
</svelte:head>
<div class="mx-auto max-w-xl flex flex-col gap-4 my-auto h-max w-full">
<Button href="/accounts" class="inline-block mb-4 w-max" rounding="pill">
<Button href="/accounts" class="mb-4 w-max" rounding="pill">
<Icon src={ArrowLeft} size="16" micro />
{$t('common.back')}
</Button>
+2 -2
View File
@@ -157,8 +157,7 @@
class="flex flex-col gap-4 h-full w-full flex-2/3"
onsubmit={preventDefault(submit)}
>
<ErrorContainer scope={page.url.pathname} />
<Button href="/accounts" class="inline-block mb-4 w-max" rounding="pill">
<Button href="/accounts" class=" mb-4 w-max" rounding="pill">
<Icon src={ArrowLeft} size="16" micro />
{$t('common.back')}
</Button>
@@ -177,6 +176,7 @@
</span>
{/snippet}
</Header>
<ErrorContainer scope={page.url.pathname} />
{#if data.site_view.local_site.registration_mode != 'Closed'}
<div class="flex flex-col md:flex-row gap-2 *:flex-1">