Repository navigation
fix(ui): keep long nav labels from widening the page - #151
Open
erkamyaman wants to merge 4 commits into
Open
erkamyaman wants to merge 4 commits into
erkamyaman wants to merge 4 commits into
Conversation
…g the page The nav scrolls without a scrollbar, also with a mouse wheel. The main area no longer scrolls sideways when the section corner marks reach past a narrow panel; wide content scrolls in its own box.
When the tabs do not fit, the cut-off side fades and an arrow scrolls the row that way; the open page's tab scrolls into view. Nothing shows when the tabs fit.
- the page frames stay clear of the section corner marks, so main keeps its sideways scroll for content wider than the panel - the nav re-measures when a tab widens (a count, a font), keeps the revealed tab clear of the fade, and lets the wheel through at an end - both arrows stay while the row overflows, dimmed at an end, so the tabs do not shift and a focused arrow keeps the focus
|
@erkamyaman is attempting to deploy a commit to the NuxtLabs Team on Vercel. A member of the Team first needs to authorize it. |
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.
In a narrow panel such as the VS Code webview, the top nav labels don't wrap or shrink. With longer labels, such as the Turkish ones, the header grows wider than the panel and the whole page scrolls sideways, cutting off the logo and the first tabs.
Checked at 390, 420 and 520px in a browser and in a narrow VS Code panel. To try it in this repo, untick
x18n.useLocalServer, since the repo's ownnode_modulesholds the published@x18n/lsp.Before:
Screen.Recording.2026-11-06.at.11.00.08.mov
After:
Screen.Recording.2026-11-06.at.10.59.13.mov