We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e21601a commit 0b55bd3Copy full SHA for 0b55bd3
src/Mermaid/useMermaid.tsx
@@ -8,9 +8,12 @@ export const useMermaid = (content: string) => {
8
useEffect(() => {
9
mermaid.initialize({
10
fontFamily: theme.fontFamilyCode,
11
+ gantt: {
12
+ useWidth: 1920,
13
+ },
14
securityLevel: 'loose',
15
startOnLoad: true,
- theme: 'base',
16
+ theme: theme.isDarkMode ? 'dark' : 'default',
17
themeVariables: {
18
errorBkgColor: theme.colorError,
19
errorTextColor: theme.colorText,
0 commit comments