pull/4634/merge
btea 1 month ago committed by GitHub
commit 658c63835f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -166,6 +166,10 @@ export function useActiveAnchor(
activeLink.classList.add('active') activeLink.classList.add('active')
marker.value.style.top = activeLink.offsetTop + 39 + 'px' marker.value.style.top = activeLink.offsetTop + 39 + 'px'
marker.value.style.opacity = '1' marker.value.style.opacity = '1'
activeLink.scrollIntoView({
block: 'center',
inline: 'nearest'
})
} else { } else {
marker.value.style.top = '33px' marker.value.style.top = '33px'
marker.value.style.opacity = '0' marker.value.style.opacity = '0'

Loading…
Cancel
Save