This commit is contained in:
2023-08-16 23:07:33 +02:00
parent d97278c344
commit dc4107ac82
13 changed files with 1544 additions and 2258 deletions

View File

@@ -4,7 +4,7 @@ function findHashPosition(hash: any): { el: any; behavior: ScrollBehavior; top:
const el = document.querySelector(hash)
// vue-router does not incorporate scroll-margin-top on its own.
if (el) {
const top = parseFloat(getComputedStyle(el).scrollMarginTop)
const top = Number.parseFloat(getComputedStyle(el).scrollMarginTop)
return {
el: hash,