Skip to content

Commit a620b82

Browse files
rahulchhabriaclaude
andcommitted
fix(sidebar): Move SidebarMoreLinks into scrollable area
The More button expands 5 links that fell outside the viewport with no way to scroll to them. sidebar-external-links used flex: 0 0 auto so it never scrolled, and the sidebar clips overflow with hidden. Moving SidebarMoreLinks inside the .toc/.sidebar-main div means expanding More just adds content to the existing scroll container. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent fd69003 commit a620b82

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/components/sidebar/index.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,7 @@ export async function Sidebar({path, versions}: SidebarProps) {
141141
<CloseSidebarOnNavigation sidebarToggleId={sidebarToggleId} />
142142
<ScrollActiveLink activeLinkSelector={activeLinkSelector} />
143143
<SidebarNavigation path={path} />
144-
</div>
145-
<SidebarSeparator />
146-
<div className={`${styles['sidebar-external-links']} px-3`}>
144+
<SidebarSeparator />
147145
<SidebarMoreLinks />
148146
</div>
149147
</div>
@@ -162,9 +160,7 @@ export async function Sidebar({path, versions}: SidebarProps) {
162160
<div className={`${styles['sidebar-main']} px-3`}>
163161
<ScrollActiveLink activeLinkSelector={activeLinkSelector} />
164162
<SidebarNavigation path={path} />
165-
</div>
166-
<SidebarSeparator />
167-
<div className={`${styles['sidebar-external-links']} px-3`}>
163+
<SidebarSeparator />
168164
<SidebarMoreLinks />
169165
</div>
170166
</div>

0 commit comments

Comments
 (0)