Skip to content

Commit ea03101

Browse files
Layout: Changed scroll to be at the top
1 parent 304e3ff commit ea03101

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/js/sidebar-v2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ document.addEventListener('DOMContentLoaded', () => {
4343
(el) => el.href.includes(currentPage)
4444
);
4545

46-
if (match) match.scrollIntoView({ behavior: 'instant', block: 'nearest' });
46+
if (match) match.scrollIntoView({ behavior: 'instant', block: 'start' });
4747
});
4848

4949
const debounce = (callback, wait) => {

0 commit comments

Comments
 (0)