mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-24 13:24:05 -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 parent = outerBlock.parentElement
|
||||
while (parent) {
|
||||
if (parent.classList.contains("callout-content")) {
|
||||
parent = parent.parentElement
|
||||
continue
|
||||
}
|
||||
if (!parent.classList.contains("callout")) {
|
||||
return
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user