Skip to content

Keep the footer at the bottom on short pages - #3

Merged
spideyonmoon merged 1 commit into
mainfrom
claude/sticky-footer
Oct 30, 2026
Merged

spideyonmoon merged 1 commit into
mainfrom
claude/sticky-footer

Conversation

@spideyonmoon

Copy link
Copy Markdown
Owner

On short pages (About, Writing), the footer sat about two-thirds of the way down the screen on phones. main only had min-height: 60vh, so the footer followed the content.

Fix

  • body is now a full-height flex column (min-height: 100vh, with 100dvh so mobile browser toolbars are accounted for).
  • main has flex: 1, so it stretches and pushes the footer to the bottom.
  • min-width: 0 on main keeps wide tables and code blocks scrolling inside the column instead of widening the page.

Testing

Checked in a browser preview at 375×812:

  • On a short page, the bottom of the footer lines up with the bottom of the screen.
  • On the long Lossless post, the footer stays after the content, the table fits the column, and there's no horizontal scroll.

🤖 Generated with Claude Code

The body is now a full-height flex column and main stretches to fill it,
replacing the fixed 60vh minimum that left the footer mid-screen on tall
phones.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@spideyonmoon
spideyonmoon merged commit c08363a into main Oct 30, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant