Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

fix: mermaid responding to dark mode (#2747)

Myles Scolnick9aae5f41edb3
diff --git a/frontend/src/plugins/layout/mermaid/mermaid.tsx b/frontend/src/plugins/layout/mermaid/mermaid.tsx
index f01f73bdf2..21a3edd5dd 100644
--- a/frontend/src/plugins/layout/mermaid/mermaid.tsx
+++ b/frontend/src/plugins/layout/mermaid/mermaid.tsx
@@ -81,7 +81,7 @@ const Mermaid: React.FC<Props> = ({ diagram }) => {
});
return result.svg;
- }, [diagram, id]);
+ }, [diagram, id, darkMode]);
if (!svg) {
return null;