mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-03-11 15:34:56 +00:00
docs: scroll to center of the view port (#4515)
This commit is contained in:
parent
4e0ca99da9
commit
316fe82dd6
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ window.addEventListener("load", function () {
|
||||||
element = document.querySelector(selector(href));
|
element = document.querySelector(selector(href));
|
||||||
}
|
}
|
||||||
if (element) {
|
if (element) {
|
||||||
element.scrollIntoView({ behavior: "smooth" });
|
element.scrollIntoView({ behavior: "smooth", block: "center", inline: "nearest" });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue