Move the sidebar links menu to the footer - #340
Merged
Conversation
The collapse control and the links menu were sharing the top-right of the sidebar. The collapse control now has that corner to itself and the "..." menu sits at the bottom-right, opposite the theme toggle. DocsLayout renders its own links menu beside the wordmark whenever it is given `links` or `githubUrl`, so both are withheld and the same menu is passed through `sidebar.footer` instead — which also keeps the links reachable on mobile, where DocsLayout would otherwise have scattered them between the page tree and the footer. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
The collapse control and the "..." links menu were sharing the top-right of the sidebar. Now the collapse control has that corner to itself, and the links menu sits at the bottom-right, opposite the theme toggle.
DocsLayout renders its own links menu beside the wordmark whenever it is given
linksorgithubUrl, and there is no prop to move or suppress it. Both are withheld and the sameLinksMenuis passed throughsidebar.footerinstead. That also keeps the links reachable on mobile — DocsLayout would otherwise scatter them between amd:hiddenlist in the page tree andmd:hiddenicons in the footer, both of which disappear along withlinks.Verified over CDP at 1000px: the collapse toggle sits at the top-right of the sidebar (y 20–52, right edge 259 of 268) and the menu at the bottom-right (y 629–661, sidebar bottom 673). The menu opens upward with all three entries — Web app, Status, GitHub — and stays displayed in the mobile drawer.
🤖 Generated with Claude Code