fix: Temporary fix for Mermaid Gantt charts – hardcode width

closes #4594
This commit is contained in:
Tom Moor
2022-12-22 06:50:57 -05:00
parent 0fa583e492
commit d261aa4d32

View File

@@ -66,6 +66,12 @@ function getNewState({
flowchart: {
htmlLabels: false,
},
// TODO: Make dynamic based on the width of the editor or remove in
// the future if Mermaid is able to handle this automatically.
gantt: {
// @ts-expect-error types do not include this property.
useWidth: 700,
},
theme: pluginState.isDark ? "dark" : "default",
fontFamily: "inherit",
});