mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-23 20:37:12 +01:00
docs: scroll to center of the view port (#4515)
This commit is contained in:
parent
969ee96106
commit
3846417df7
@ -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 New Issue
Block a user