Skip to content

fix(dock): prevent dock from overlapping page content#106

Open
seanrw93 wants to merge 2 commits intonst-sdc:mainfrom
seanrw93:fix/footer-responsive-105
Open

fix(dock): prevent dock from overlapping page content#106
seanrw93 wants to merge 2 commits intonst-sdc:mainfrom
seanrw93:fix/footer-responsive-105

Conversation

@seanrw93
Copy link
Copy Markdown

@seanrw93 seanrw93 commented Feb 9, 2026

Summary

This PR fixes an issue where the bottom navigation dock could overlap page content near the bottom of the viewport, particularly on mobile and authenticated pages.

The fix ensures content is pushed above the fixed navigation with appropriate spacing, preventing overlap while preserving the existing dock behavior.

How this addresses the issue

This change satisfies the following acceptance criteria:

Push the content above the navigation with proper spacing
Content wrappers now include bottom spacing to account for the fixed dock, ensuring the last elements remain visible and accessible.

Responsive behavior

The dock remains fixed as intended, while layout spacing adapts correctly across screen sizes and page types.

What was changed

  • Adjusted page-level layout wrappers to prevent overlap with the fixed bottom navigation
  • Ensured consistent behavior across public and authenticated pages
  • No changes to navigation logic or routing

Testing

Verified locally on:

  • Home
  • Login / Signup
  • Track Shuttle

Tested on:

  • Mobile viewport
  • Desktop viewport
  • The bottom navigation no longer overlaps content in any of these contexts.

** Related issue**

Fixes #105

The bottom navigation dock could overlap page content near
the bottom of the viewport, particularly on mobile screens.
This change adds spacing at the page wrapper level to keep
content fully readable while preserving the existing dock
behavior on larger screens.
Copilot AI review requested due to automatic review settings February 9, 2026 16:40
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes bottom navigation dock overlap by adding bottom spacing to page wrappers and adjusting the dock container to better fit mobile/desktop layouts.

Changes:

  • Added bottom padding to key pages to keep content above the fixed dock
  • Updated dock positioning to be full-width on mobile and centered on larger screens
  • Tweaked dock item sizing/rounding for improved responsiveness

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
frontend/src/pages/TrackShuttle.jsx Adds bottom padding to the page wrapper to prevent dock overlap
frontend/src/pages/Signup.jsx Adds bottom padding to the layout container to prevent dock overlap
frontend/src/pages/Login.jsx Adds bottom padding to the layout container to prevent dock overlap
frontend/src/pages/Home.jsx Adds bottom padding to the home layout container to prevent dock overlap
frontend/src/components/Footer.jsx Makes the dock full-width on mobile, centered on larger screens, and adjusts styling/spacing

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

return (
<div className="min-h-[calc(100vh-80px)] w-full flex flex-col justify-center relative overflow-hidden">
/* Padding prevents overlap with fixed bottom dock */
<div className="min-h-[calc(100vh-80px)] pb-20 sm:pb-24 w-full flex flex-col justify-center relative overflow-hidden">
Copy link

Copilot AI Feb 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The dock-spacing values (pb-20 sm:pb-24) are duplicated across multiple pages, which risks drift if the dock height/spacing changes again. Consider centralizing this into a shared layout wrapper component or a Tailwind utility (e.g., a custom class like pb-dock) so the padding is defined in one place.

Copilot uses AI. Check for mistakes.
@seanrw93 seanrw93 requested a review from Copilot February 9, 2026 19:42
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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.

Bottom Navigation Bar Overlaps Content on Different Screen Sizes

2 participants