[BUG] Mobile navigation menu overlaps page content on screens below 480px width#1267
Merged
komalharshita merged 1 commit intoJul 17, 2026
Conversation
|
@abhinavkhedwal4-maker is attempting to deploy a commit to the komalsony234-1530's projects Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary [required]
This PR fixes a mobile layout bug where the fixed navigation bar (
position: fixed) overlaps the top of the main page content on viewports narrower than 480px. Because fixed elements are removed from the normal document flow, the main content (including the entry form fields) was sliding underneath the navbar, making them hidden on smaller mobile screens like the iPhone SE (375px). This change introduces an isolated media query at the base of the stylesheet to gracefully shift the layout down and clear the navbar bounds on small screens.Related Issue [required]
Closes #1266
Type of Change [required]
data/projects.jsonWhat Was Changed [required]
static/style.css@media screen and (max-width: 480px)rule targetingmain,.container,.main-content,.hero, andformelements to safely injectpadding-top: 70px !important, preserving top form field visibility on mobile layouts.How to Test This PR [required]
git checkout fix/mobile-nav-1266python app.pyhttp://127.0.0.1:5000in your web browser.F12), switch to device inspection mode, and select iPhone SE (375px) or any width lower than 480px.Test Results [required]