mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-24 05:14:06 -06:00
Fixed broken nested callout maxHeight calculation
This commit is contained in:
parent
7d49dff074
commit
8dc9ab8fab
@ -9,6 +9,10 @@ function toggleCallout(this: HTMLElement) {
|
|||||||
let current = outerBlock
|
let current = outerBlock
|
||||||
let parent = outerBlock.parentElement
|
let parent = outerBlock.parentElement
|
||||||
while (parent) {
|
while (parent) {
|
||||||
|
if (parent.classList.contains("callout-content")) {
|
||||||
|
parent = parent.parentElement
|
||||||
|
continue
|
||||||
|
}
|
||||||
if (!parent.classList.contains("callout")) {
|
if (!parent.classList.contains("callout")) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user