Update toc.js

This commit is contained in:
Leilukin 2023-08-14 01:01:23 +08:00 committed by Helen Chong
parent 869b9ab703
commit f0ab61855e

View File

@ -72,7 +72,7 @@ window.addEventListener('DOMContentLoaded', (event) => {
document.documentElement.clientHeight < document.documentElement.clientHeight <
tocSidebar.offsetHeight + 50 tocSidebar.offsetHeight + 50
) { ) {
tocSidebar.style.marginTop = "50px"; tocSidebar.style.marginTop = "0";
tocSidebar.style.position = "static"; tocSidebar.style.position = "static";
} }
} }