fix: better big screen navigation scroll
This commit is contained in:
parent
db60d95d9c
commit
b46dff280d
2 changed files with 4 additions and 1 deletions
|
@ -194,7 +194,9 @@ function enableTag(node) {
|
||||||
closeMenu()
|
closeMenu()
|
||||||
document.getElementsByClassName('content')[0].scrollIntoView(true)
|
document.getElementsByClassName('content')[0].scrollIntoView(true)
|
||||||
} else {
|
} else {
|
||||||
document.getElementsByClassName('up-footer')[0].scrollIntoView(true)
|
if (window.scrollY() > 300) {
|
||||||
|
document.getElementsByClassName('content')[0].scrollIntoView(true)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -76,6 +76,7 @@
|
||||||
.content {
|
.content {
|
||||||
padding-top: 1.5em;
|
padding-top: 1.5em;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
padding-bottom: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue