We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ceb046e commit 213bd65Copy full SHA for 213bd65
docs/_layouts/on-this-page.html
@@ -39,10 +39,12 @@
39
40
<script>
41
document.addEventListener("DOMContentLoaded", function() {
42
- const toc = document.querySelector(".toc");
43
- const firstHeader = document.querySelector("h1");
44
- if (toc && firstHeader) {
45
- firstHeader.insertAdjacentElement("afterend", toc);
+ if (window.innerWidth <= 800) {
+ const toc = document.querySelector(".toc");
+ const firstHeader = document.querySelector("h1");
+ if (toc && firstHeader) {
46
+ firstHeader.insertAdjacentElement("afterend", toc);
47
+ }
48
}
49
});
50
</script>
0 commit comments