fix: Add whitespace-nowrap to navbar buttons to prevent text wrapping #1520
+2
−2
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.
Before:
After
Greptile Summary
Added
whitespace-nowrapTailwind class to navbar buttons to prevent text wrapping at narrow viewport widths.Confidence Score: 4/5
Important Files Changed
whitespace-nowrapto GitHub and Sign Up/Dashboard buttons to prevent text wrapping; two similar buttons (Loading, Login) could benefit from the same treatmentSequence Diagram
sequenceDiagram participant User participant Browser participant Navbar participant Button User->>Browser: Resize window to narrow width Browser->>Navbar: Trigger responsive layout Navbar->>Button: Apply sm:w-auto class Note over Button: Text wraps without whitespace-nowrap Button->>Button: Add whitespace-nowrap class Note over Button: Text no longer wraps Button->>Navbar: Render single-line button Navbar->>Browser: Display fixed navbar layout Browser->>User: Show properly formatted buttons