Skip to content

Commit

Permalink
Fix scroll on login page
Browse files Browse the repository at this point in the history
  • Loading branch information
PolpOnline committed Jan 6, 2025
1 parent 05d80ac commit 7661fa8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/frontend/src/routes/login/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
let { data }: { data: PageData } = $props();
</script>

<div class="h-screen-not-navbar flex flex-col items-center justify-center">
<main class="h-screen-not-navbar flex flex-col items-center justify-center">
<div class="max-w-96">
<h1 class="mb-5 text-center text-3xl font-bold">
<T keyName="login.login_or_signup" />
Expand All @@ -20,10 +20,10 @@
<LoginForm data={data.form} />
</div>
</div>
</div>
</main>

<style lang="postcss">
.h-screen-not-navbar {
height: calc(100vh - 5rem);
height: calc(100svh - 5rem);
}
</style>

0 comments on commit 7661fa8

Please sign in to comment.