astroplate
astroplate copied to clipboard
fix: position footer at bottom of the page layout
๐ Description
Fixed the footer positioning to ensure it always stays at the bottom of the page, even when content is short.
Applied min-h-[calc(100vh-311px)], subtracting the combined height of the navbar and footer for accurate layout behavior.
You can see an example of the fix on the About page.
๐ Change summary
- Applied
min-h-[calc(100vh-311px)]to maintain footer at the bottom of the viewport - Adjusted layout structure to properly calculate available content height
- Verified consistent footer behavior across desktop and mobile views
- Example available on
/about
๐ Types of changes
- [ ] ๐ Bug fix
- [ ] ๐จ Breaking change
- [x] ๐งน Chore (layout adjustment / visual fix)
- [ ] โจ New feature
- [ ] โซ Version upgrade
- [ ] ๐ Documentation
๐งช How to test
- Visit the About page (
/about) - Scroll through pages with short and long content
- Verify that the footer remains at the bottom of the viewport
- Check both desktop and mobile views
๐ธ Screenshots
Before
After
Deploy Preview for astroplate ready!
| Name | Link |
|---|---|
| Latest commit | 091c2040d60b2137d8e8ce9f13d27a511de5a875 |
| Latest deploy log | https://app.netlify.com/projects/astroplate/deploys/68e9706e88cf090008c348b4 |
| Deploy Preview | https://deploy-preview-77--astroplate.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify project configuration.