develop #21

Merged
TheFurya merged 8 commits from develop into main 2026-02-14 10:01:44 +01:00
2 changed files with 5 additions and 4 deletions
Showing only changes of commit 29a5c84651 - Show all commits

View File

@@ -1,10 +1,11 @@
---
# nuzlocke-tracker-36wg
title: Make footer stick to bottom of viewport
status: todo
status: in-progress
type: bug
priority: normal
created_at: 2026-02-13T07:47:48Z
updated_at: 2026-02-13T07:47:48Z
updated_at: 2026-02-13T12:51:48Z
---
On pages with little content, the footer appears right after the content instead of staying at the bottom of the viewport. The footer should always be at the bottom of the browser window, pushing down when there's enough content but not floating in the middle of the page when content is short (sticky footer pattern).

View File

@@ -5,7 +5,7 @@ export function Layout() {
const [menuOpen, setMenuOpen] = useState(false)
return (
<div className="min-h-screen bg-gray-50 dark:bg-gray-900 text-gray-900 dark:text-gray-100">
<div className="min-h-screen flex flex-col bg-gray-50 dark:bg-gray-900 text-gray-900 dark:text-gray-100">
<nav className="bg-white dark:bg-gray-800 shadow-sm">
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div className="flex justify-between h-16">
@@ -124,7 +124,7 @@ export function Layout() {
</div>
)}
</nav>
<main>
<main className="flex-1">
<Outlet />
</main>
<footer className="border-t border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800">