Repository navigation
[6.x] Fit the global header on very narrow screens - #16177
Merged
Merged
Conversation
Below 350px the header overflowed: the site selector and buttons never shrink, so the avatar was cut off and the logo was hidden to make room. - Tighter gaps between the header's groups - The site selector shows just the globe, with the site name for screen readers - The logo mark shows again, with the name for screen readers
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.
Description of the Problem
Below 350px the global header doesn't fit. The site selector ("English Site"), Search, Support, View Site and the user menu never shrink, so the header scrolls sideways and View Site and the avatar are cut off. The logo was already hidden below 350px to make room, which wasn't enough and left a big empty gap where it used to be.
What this PR Does
Below 350px only:
At 322px the header now fits exactly. On form pages, the Save button's offset is dropped below 350px so it stays clear of the tabs dropdown with the smaller gap. Form pages still scroll a little at that width, as they did before, since the tabs and Save button add about 130px.
The obvious alternative was hiding more buttons, but the site name is the one control that's wide for no good reason: the globe still says what it is, and the name is a click away.
Before / After
How to Reproduce