-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Site Editor: fix app header on small-medium screens #27310
Conversation
Size Change: -5.48 kB (0%) Total Size: 1.19 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.edit-site-header_end { | ||
// Flex basis prevents the header_end toolbar | ||
// from collapsing when shrinking the viewport | ||
flex-basis: $header-toolbar-min-width; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is the only place that variable is used. Which means it can be removed from the _variables.scss stylesheet in base-styles now. See also #26827.
Description
This fixes various issues with app header alignment on small-medium screens, particularly with the navigation sidebar open.
It removes a lot of
flex
properties and just allows flexbox to do its thing. This keeps the document dropdown from being perfectly centred, but it improves reliability as we're not trying to compensate for edge cases.Non-
is-primary
icons are simply hidden on < large screens while the navigation sidebar is open to ensure there's enough room.Fixes #27245 #26754
How has this been tested?
Types of changes
Bug fix
Checklist: