Skip to content

Commit 4d85a45

Browse files
authored
feat: Keep the Platform/Language/Framework dropdown visible and scroll nav below it (#13282)
1 parent b5e0028 commit 4d85a45

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/components/sidebar/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export async function Sidebar({path, versions}: SidebarProps) {
8686
<aside className={styles.sidebar}>
8787
<input type="checkbox" id={sidebarToggleId} className="hidden" />
8888
<style>{':root { --sidebar-width: 300px; }'}</style>
89-
<div className="md:flex flex-col items-stretch">
89+
<div className="md:flex flex-col items-stretch overflow-auto">
9090
<div className="platform-selector">
9191
<div className="mb-3">
9292
<PlatformSelector

src/components/sidebar/style.module.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
}
7171

7272
.toc {
73+
overflow: auto;
7374
font-size: 0.875rem;
7475
flex: 1;
7576
overflow-y: hidden;

0 commit comments

Comments
 (0)