smooth-scroll on hash nav

Anchor links like /#bundles, /#revitalize, /#about now smooth-scroll
to their target instead of jumping. Reverts the earlier instant-jump
choice — for the homepage nav, the animation is the desired feedback.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Dorian
2026-05-03 16:10:09 +01:00
parent f0470fc113
commit b48b34f424
3 changed files with 3 additions and 3 deletions

View File

@@ -166,7 +166,7 @@ const router = createRouter({
// not honoured so users land at a predictable position rather than
// wherever they last scrolled to.
scrollBehavior(to) {
if (to.hash) return { el: to.hash }
if (to.hash) return { el: to.hash, behavior: 'smooth' }
return { top: 0 }
},
})