Skip to content

Commit 0b55bd3

Browse files
💄 style: Fix Mermaid gantt render
1 parent e21601a commit 0b55bd3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Mermaid/useMermaid.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,12 @@ export const useMermaid = (content: string) => {
88
useEffect(() => {
99
mermaid.initialize({
1010
fontFamily: theme.fontFamilyCode,
11+
gantt: {
12+
useWidth: 1920,
13+
},
1114
securityLevel: 'loose',
1215
startOnLoad: true,
13-
theme: 'base',
16+
theme: theme.isDarkMode ? 'dark' : 'default',
1417
themeVariables: {
1518
errorBkgColor: theme.colorError,
1619
errorTextColor: theme.colorText,

0 commit comments

Comments
 (0)