Fix footer floating mid-page on short content pages
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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).
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user