Skip to content

Commit cf04ed5

Browse files
authored
docs: fix SPA Links not scrolling back to top (#8038)
docs: fix SPA Link not scrolling back to top
1 parent c04651d commit cf04ed5

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

packages/docs/src/components/sidebar/sidebar.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,7 @@ export function Items({
132132
},
133133
]}
134134
>
135-
<>
136-
{/* {renderUpdated(item.href!, markdownItems)} */}
137-
{item.text}
138-
</>
135+
{item.text}
139136
</Link>
140137
)}
141138
</li>

packages/docs/src/global.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ select {
220220
}
221221

222222
body {
223-
@apply antialiased h-screen overflow-auto;
223+
@apply antialiased h-screen;
224224
scrollbar-gutter: stable;
225225
}
226226

0 commit comments

Comments
 (0)