diff --git a/src/client/theme-default/composables/outline.ts b/src/client/theme-default/composables/outline.ts index ff9eca2746ba..f488e6faff64 100644 --- a/src/client/theme-default/composables/outline.ts +++ b/src/client/theme-default/composables/outline.ts @@ -197,6 +197,7 @@ export function useActiveAnchor( if (activeLink) { activeLink.classList.add('active') + activeLink.scrollIntoView({ behavior: 'smooth', block: 'center' }) marker.value.style.top = activeLink.offsetTop + 39 + 'px' marker.value.style.opacity = '1' } else {