Skip to content

Move the sidebar collapse control to the header - #339

Merged
bashybaranaba merged 1 commit into
mainfrom
agent/docs-chrome
Sep 2, 2026
Merged

Move the sidebar collapse control to the header#339
bashybaranaba merged 1 commit into
mainfrom
agent/docs-chrome

Conversation

@bashybaranaba

Copy link
Copy Markdown
Member

Three chrome fixes on the docs sidebar.

Collapse / expand button at the top. Fumadocs puts the collapse control in the sidebar footer and its expand counterpart at the bottom-left of the viewport. Both now sit at the top beside the wordmark, as they do in commons-app — the header copy is rendered through nav.children, the footer one is hidden, and the floating expand button is lifted to the same line.

Below xl the table of contents becomes a sticky bar across the top of the page, so the expand button is dropped clear of it there. Verified both states by driving the real toggle over CDP: at 1440px the button lands at y=14 with no TOC bar; at 1000px it lands at y=54 with the bar ending at y=37.

"Docs" tag is back beside the wordmark.

CLI install snippet removed from the bottom of the sidebar, along with the now-unused components/sidebar-footer.tsx.

One thing worth flagging: the selector I had been using for the sidebar footer (#nd-sidebar > div:last-child) was wrong — #nd-sidebar wraps everything in a single div, so it matched the whole sidebar. It is replaced with a class-based selector that does not depend on nesting.

🤖 Generated with Claude Code

Fumadocs puts the collapse button in the sidebar footer and its expand
counterpart at the bottom-left of the viewport. Both now sit at the top
beside the wordmark, the way commons-app's sidebar does it: the header
copy is rendered through `nav.children`, the footer one is hidden, and
the floating expand button is lifted to the same line — dropped clear of
the table-of-contents bar below `xl`, where that bar is sticky at the top
of the page.

Brings back the "Docs" tag beside the wordmark, and drops the CLI install
snippet that was pinned to the bottom of the sidebar.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Sep 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
agent-commons Ready Ready Preview Sep 2, 2026 12:16pm UTC
agent-commons-commons-docs Ready Ready Preview Sep 2, 2026 12:16pm UTC
commons-courses Ready Ready Preview Sep 2, 2026 12:16pm UTC

Request Review

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