[web] Remove dependency to "vue-scrollto" library

The UI has now one dependency less to a third party library.
This commit is contained in:
Alain Nussbaumer
2023-07-25 16:39:16 +02:00
parent d733a17871
commit dd5b4dcb32
7 changed files with 192 additions and 234 deletions

View File

@@ -306,7 +306,7 @@ export const router = createRouter({
if (to.path === from.path && to.hash) {
// We are staying on the same page and are jumping to an anchor (e. g. index nav)
// We don't have a transition, so don't add a timeout!
return { el: to.hash, top: 120 }
return { el: to.hash, top: 140, behavior: 'smooth' }
}
if (to.hash) {