Fix mermaid dark/light themes

This commit is contained in:
yflory 2021-02-09 17:44:38 +01:00
parent 2da6ac87c3
commit d571822adf
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ define([
Mermaid = _Mermaid;
Mermaid.initialize({
gantt: { axisFormat: '%m-%d', },
theme: (window.CryptPad_theme === 'dark') ? 'dark' : undefined,
theme: (window.CryptPad_theme === 'dark') ? 'dark' : 'default',
"themeCSS": mermaidThemeCSS,
});
}