diff --git a/index.html b/index.html index 5cc39bd..4dfeee3 100644 --- a/index.html +++ b/index.html @@ -80,7 +80,7 @@ document.title = main.children.item(0).innerHTML + " - " + main.children.item(1).innerHTML document.querySelector("html").lang = lang - if (scrollto != "top") document.querySelector("#" + scrollto).scrollIntoView() + if (scrollto != "top") document.querySelector("#" + scrollto).scrollIntoView({ block: "center", inline: "center" }) fetch("./pages/" + lang + "/sidebar.md").then(res => { if (res.status != 404) {