Skip to content

Commit f120812

Browse files
fixes scroll
1 parent 71484f5 commit f120812

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/components/Sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ export default function Sidebar(props: Props) {
2929
)}
3030
<li>
3131
<AnchorLink href={'#' + lrdDocsItem.http_method + lrdDocsItem.uri}
32+
offset={() => 120}
3233
onClick={() => {
3334
window.history.pushState({}, '', '#' + lrdDocsItem.http_method + lrdDocsItem.uri);
34-
setTimeout(() => {window.scrollBy(0, -128)}, 600);
3535
}}
3636
className="flex flex-row px-0 py-1">
3737
<span className={`method-${lrdDocsItem.http_method} uppercase text-xs w-12 p-0 flex flex-row-reverse`}>

0 commit comments

Comments
 (0)