Skip to content

ADMINTHEME-126 Responsive top navigation - #43

Open
pixl8-jg wants to merge 2 commits into
stablefrom
feature-ADMINTHEME-126_responsive-top-navigation
Open

ADMINTHEME-126 Responsive top navigation#43
pixl8-jg wants to merge 2 commits into
stablefrom
feature-ADMINTHEME-126_responsive-top-navigation

Conversation

@pixl8-jg

Copy link
Copy Markdown
Contributor

This PR makes the admin top level navigation responsive, so the header no longer wraps onto a second line when there is not enough room for every item. The space available to the nav changes for reasons unrelated to viewport width - a wider site picker, or controls added to the header at runtime - so none of this is driven by media queries. The toolbar is now a single non-wrapping flex row in which #topLevelNav is the only flexible child, so its width tracks the leftover space whatever changes, and one ResizeObserver on it covers every case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant