Fix: Navbar overflow and cut-off at medium breakpoints#24
Open
AliHaiderBajwa wants to merge 1 commit into
Open
Fix: Navbar overflow and cut-off at medium breakpoints#24AliHaiderBajwa wants to merge 1 commit into
AliHaiderBajwa wants to merge 1 commit into
Conversation
- Added overflow-hidden to inner pill to clip overflowing text - Added whitespace-nowrap to nav links to prevent wrapping - Tightened gaps and padding at md breakpoint - Fixes Prime-Innovators#23
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
This PR fixes the responsive bug where the right-side elements (GitHub icon + "Join the Waitlist" button) were getting cut off or pushed out of the viewport at screen widths between 768px and 1024px.
Root Cause
The center navigation pill (containing "Home", "Ecosystem", "About", "Blog", "Contact") lacked
overflow-hiddenandwhitespace-nowrap. When the viewport shrank, the text inside the pill would spill out of its borders and push the right-side buttons off-screen.Changes Made
gap-3→gap-2 md:gap-1.5for better spacing at tablet sizes.overflow-hiddento clip text inside borders, reduced padding (px-2 md:px-1.5,py-1 md:py-0.5), and reduced font size (text-sm md:text-xs).min-w-0to allow proper flex shrinking (override defaultmin-width: auto).whitespace-nowrapto prevent text wrapping to a second line.Testing
Screenshots
Before:


After: