Merge branch 'main' into chore/vite-3

pull/1136/head
Divyansh Singh 3 years ago committed by GitHub
commit 506bd13b04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -83,7 +83,6 @@ watchPostEffect(async () => {
padding-bottom: 128px;
width: var(--vp-sidebar-width);
max-width: 100%;
width: var(--vp-sidebar-width);
background-color: var(--vp-c-bg-alt);
opacity: 1;
visibility: visible;

@ -105,7 +105,7 @@ export function useActiveAnchor(
const scrollY = window.scrollY
const innerHeight = window.innerHeight
const offsetHeight = document.body.offsetHeight
const isBottom = scrollY + innerHeight === offsetHeight
const isBottom = Math.abs(scrollY + innerHeight - offsetHeight) < 1
// page bottom - highlight last one
if (anchors.length && isBottom) {

Loading…
Cancel
Save