Skip to content

Commit 73f8602

Browse files
light/dark toggle fire resize event
fixes sizing issues in plotly-python and heatmaply fixes non-displaying leaflet this is a backport to v1.7; changelog there
1 parent c7f0c0d commit 73f8602

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/resources/formats/html/templates/quarto-html-before-body.ejs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@
186186
toggleColorMode(toAlternate);
187187
setStyleSentinel(toAlternate);
188188
toggleGiscusIfUsed(toAlternate, darkModeDefault);
189+
window.dispatchEvent(new Event('resize'));
189190
};
190191
191192
<% if (respectUserColorScheme) { %>

0 commit comments

Comments
 (0)