We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 65846c4 + 4aec353 commit 04dcf93Copy full SHA for 04dcf93
ui/src/css/doc.css
@@ -28,6 +28,7 @@
28
hyphens: none;
29
line-height: 1.3;
30
margin: 1rem 0 0;
31
+ scroll-margin-top: calc(var(--navbar-height) + var(--toolbar-height) + 1rem); /* Account for sticky header height */
32
}
33
34
.doc > h1.page:first-child {
ui/src/js/03-fragment-jumper.js
@@ -3,7 +3,7 @@
3
4
var article = document.querySelector('article.doc')
5
if (!article) return
6
- var toolbar = document.querySelector('.toolbar')
+ var toolbar = document.querySelector('header') || document.querySelector('.toolbar')
7
var supportsScrollToOptions = 'scrollTo' in document.documentElement
8
9
function decodeFragment (hash) {
0 commit comments