FIX: adjust mobile specificity (#71)

* FIX: adjust mobile specificity

* prettier
This commit is contained in:
Kris
2023-12-12 09:48:17 +11:00
committed by GitHub
parent 04acc4bb30
commit fc53d7efa2
2 changed files with 73 additions and 65 deletions
@@ -231,14 +231,6 @@ export default {
return false;
}
if (
!classNames.some((className) =>
document.body.classList.contains(className)
)
) {
return;
}
// link to each heading
if (
e.target.closest(".d-toc-item") &&
@@ -291,6 +283,14 @@ export default {
if (!e.target.closest(".d-toc-wrapper.overlay")) {
document.querySelector(".d-toc-wrapper").classList.remove("overlay");
}
if (
!classNames.some((className) =>
document.body.classList.contains(className)
)
) {
return;
}
},
buildTOC(headings) {