mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
954946ae12
* 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 ---------