Skip to content

Commit

Permalink
fix mismatch with ToC
Browse files Browse the repository at this point in the history
  • Loading branch information
IshavSohal committed Dec 9, 2024
1 parent 20a17a9 commit 85e3b60
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ const router = createRouter({
return {
el: decodeURIComponent(to.hash),
behavior: 'smooth',
top:
(document.getElementById('h-navbar')?.clientHeight || 0) +
(document.getElementById('story-header')?.clientHeight || 0)
top: window.innerHeight / 6
};
}
}
Expand Down

0 comments on commit 85e3b60

Please sign in to comment.