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.
Moves secondary nav menu items into / out of the More dropdown depending on the browser window width, as explained earlier in #4854 (comment). This lets to use screen space more efficiently as opposed to the current all-or-nothing "compact mode" where either the entire menu is visible or it is fully collapsed into more, see #5151 (comment).
Fixes #4130 because "compact mode" is gone and changes in #4842 and #5151 make it possible to switch between "small mode" with a burger menu and "wide mode" at a fixed width as described in #4130 (comment).
You'll notice that I also left-aligned the menu. That has to do with minimizing the blinking when the javascript menu code runs. Before the code runs, all menu items are visible. After it runs, some of them may get collapsed into More. If I kept them right-aligned, that could cause them to move right. The currently deployed version also has this kind of blinking, with the difference that all menu items appear and then possibly disappear if "compact mode" with More is triggered. Also some people may actually want History and Export closer to where they were before #5151.
I also experimented with removing More and letting the menu occupy multiple lines if necessary but I didn't like the results. Sometimes three lines are required, then line height has to be reduced. This makes it more difficult to click the menu entries even with a mouse, touch interfaces probably degrade even more.