Files
outline/app/components
Tom Moor 954946ae12 fix: Re-render Mermaid diagrams in light theme for print (#12342)
* fix: Re-render Mermaid diagrams in light theme for print

Mermaid diagrams are rendered as SVG with theme-specific colors baked in,
so when printing from dark mode the dark backgrounds carry through onto
white paper. Listen for beforeprint/afterprint and re-dispatch the
existing theme-changed event so the Mermaid plugin re-renders the
diagrams in light theme for the duration of the print, then restores
them after. The in-app print action also pre-dispatches the theme
change to give Mermaid's async render time to complete before the print
dialog captures the DOM.

* Refactor to use media query

---------
2026-05-13 21:14:42 -04:00
..
2025-12-23 11:53:41 -05:00
2026-04-18 15:12:57 -04:00
2026-04-18 15:12:57 -04:00
2026-04-03 19:50:50 -04:00
2026-02-20 18:53:00 -05:00
2024-11-02 10:58:03 -07:00
2025-03-15 15:06:12 -07:00
…
2026-04-20 19:34:16 -04:00
2026-04-18 15:12:57 -04:00
2026-04-18 15:12:57 -04:00
2026-04-20 19:34:16 -04:00
…
2026-04-18 15:12:57 -04:00
2026-02-20 18:53:00 -05:00