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 & {
|
||||
display: none;
|
||||
}
|
||||
.d-toc-main {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -159,7 +159,13 @@ export default {
|
|||
},
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue