We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6fcaba commit c0ebc4aCopy full SHA for c0ebc4a
docs/static/js/main.js
@@ -126,7 +126,7 @@ document.addEventListener("DOMContentLoaded", function () {
126
let target = document.querySelector(hash)
127
if (target) {
128
let offsetSearch = document.querySelector("#search_text").offsetHeight
129
- let offsetCategory = document.querySelector("summary.category_name").offsetHeight
+ let offsetCategory = target.closest("summary").offsetHeight
130
window.scrollTo({
131
top: target.offsetTop - offsetSearch - offsetCategory - 1,
132
behavior: "smooth"
0 commit comments