diff --git a/src/client/theme-default/composables/outline.ts b/src/client/theme-default/composables/outline.ts index 74e72a0f..46fb2643 100644 --- a/src/client/theme-default/composables/outline.ts +++ b/src/client/theme-default/composables/outline.ts @@ -168,6 +168,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 {