From 29a71f4421ec5751599f47dd18e6f30e4467f554 Mon Sep 17 00:00:00 2001 From: Marcel Date: Wed, 25 Mar 2026 13:36:18 +0100 Subject: [PATCH] fix(login): remove py-6 padding from layout on auth pages to prevent scrolling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The global layout wrapped all pages in
, adding 48px of vertical padding. Combined with min-h-screen on the login page div, the total height exceeded 100vh and made the page scrollable. Auth pages (/login, /forgot-password, /reset-password) now get no padding from the layout — the same path check already used to hide the nav header. Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/routes/+layout.svelte | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/src/routes/+layout.svelte b/frontend/src/routes/+layout.svelte index ad34d9be..11f31185 100644 --- a/frontend/src/routes/+layout.svelte +++ b/frontend/src/routes/+layout.svelte @@ -24,6 +24,10 @@ onMount(() => { hydrated = true; }); +const isAuthPage = $derived( + ['/login', '/forgot-password', '/reset-password'].some((p) => page.url.pathname.startsWith(p)) +); + let userMenuOpen = $state(false); const userInitials = $derived.by(() => { @@ -47,7 +51,7 @@ function clickOutside(node: HTMLElement) {
- {#if !['/login', '/forgot-password', '/reset-password'].some((p) => page.url.pathname.startsWith(p))} + {#if !isAuthPage}
@@ -194,7 +198,7 @@ function clickOutside(node: HTMLElement) {
{/if} -
+
{@render children()}