fix: bugs with formatting in signup page
This commit is contained in:
3 files changed
+8
-3
No files matched your search
@@ -1,3 +1,8 @@
|
|||||||
|
import { profile } from '$lib/auth.svelte.js'
|
||||||
|
import { redirect } from '@sveltejs/kit'
|
||||||
|
|
||||||
export const load = ({ url }) => {
|
export const load = ({ url }) => {
|
||||||
|
if (!profile.current.jwt) redirect(302, '/login')
|
||||||
|
|
||||||
return { crosspost: Boolean(url.searchParams.get('crosspost')) }
|
return { crosspost: Boolean(url.searchParams.get('crosspost')) }
|
||||||
}
|
}
|
||||||
@@ -67,7 +67,7 @@
|
|||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
<div class="mx-auto max-w-xl flex flex-col gap-4 my-auto h-max w-full">
|
<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 />
|
<Icon src={ArrowLeft} size="16" micro />
|
||||||
{$t('common.back')}
|
{$t('common.back')}
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@@ -157,8 +157,7 @@
|
|||||||
class="flex flex-col gap-4 h-full w-full flex-2/3"
|
class="flex flex-col gap-4 h-full w-full flex-2/3"
|
||||||
onsubmit={preventDefault(submit)}
|
onsubmit={preventDefault(submit)}
|
||||||
>
|
>
|
||||||
<ErrorContainer scope={page.url.pathname} />
|
<Button href="/accounts" class=" mb-4 w-max" rounding="pill">
|
||||||
<Button href="/accounts" class="inline-block mb-4 w-max" rounding="pill">
|
|
||||||
<Icon src={ArrowLeft} size="16" micro />
|
<Icon src={ArrowLeft} size="16" micro />
|
||||||
{$t('common.back')}
|
{$t('common.back')}
|
||||||
</Button>
|
</Button>
|
||||||
@@ -177,6 +176,7 @@
|
|||||||
</span>
|
</span>
|
||||||
{/snippet}
|
{/snippet}
|
||||||
</Header>
|
</Header>
|
||||||
|
<ErrorContainer scope={page.url.pathname} />
|
||||||
|
|
||||||
{#if data.site_view.local_site.registration_mode != 'Closed'}
|
{#if data.site_view.local_site.registration_mode != 'Closed'}
|
||||||
<div class="flex flex-col md:flex-row gap-2 *:flex-1">
|
<div class="flex flex-col md:flex-row gap-2 *:flex-1">
|
||||||
|
|||||||
Reference in new issue
Block a user