Skip to content

Commit a221c78

Browse files
committed
update comment
1 parent f28142f commit a221c78

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

web_src/js/markup/mermaid.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ export async function renderMermaid() {
6161
iframe.style.height = `${iframe.contentWindow.document.body.clientHeight}px`;
6262
};
6363

64-
// update height when element becomes visible, for example when the diagram is inside a details+summary block
64+
// update height when element's visibility state changes, for example when the diagram is inside
65+
// a <details> + <summary> block and the <details> block becomes visible upon user interaction
6566
(new IntersectionObserver(() => {
6667
updateIframeHeight();
6768
}, {root: document.documentElement})).observe(iframe);

0 commit comments

Comments
 (0)