astroplate icon indicating copy to clipboard operation
astroplate copied to clipboard

fix: position footer at bottom of the page layout

Open victor-arango opened this issue 2 months ago โ€ข 1 comments

๐Ÿ“„ 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

  1. Visit the About page (/about)
  2. Scroll through pages with short and long content
  3. Verify that the footer remains at the bottom of the viewport
  4. Check both desktop and mobile views

๐Ÿ“ธ Screenshots

Before

image

After

image

victor-arango avatar Oct 10 '25 20:10 victor-arango

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...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

netlify[bot] avatar Oct 10 '25 20:10 netlify[bot]