diff --git a/docs/_includes/extra/script.js b/docs/_includes/extra/script.js index 748dd60a7..f5d1f92bf 100644 --- a/docs/_includes/extra/script.js +++ b/docs/_includes/extra/script.js @@ -17,7 +17,7 @@ window.addEventListener("load", function () { element = document.querySelector(selector(href)); } if (element) { - element.scrollIntoView({ behavior: "smooth" }); + element.scrollIntoView({ behavior: "smooth", block: "center", inline: "nearest" }); } });