FIX: Compatibility with discourse-docs plugin (#37)
This commit is contained in:
parent
2f2c9f387d
commit
5d69a72200
|
@ -236,4 +236,7 @@ a.d-toc-close {
|
||||||
.mobile-view & {
|
.mobile-view & {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
.d-toc-main {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -159,7 +159,13 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
clickTOC(e) {
|
clickTOC(e) {
|
||||||
if (!document.body.classList.contains("d-toc-timeline-visible")) {
|
const classNames = ["d-toc-timeline-visible", "archetype-docs-topic"];
|
||||||
|
|
||||||
|
if (
|
||||||
|
!classNames.some((className) =>
|
||||||
|
document.body.classList.contains(className)
|
||||||
|
)
|
||||||
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue