fix: Temporary fix for Mermaid Gantt charts – hardcode width
closes #4594
This commit is contained in:
@@ -66,6 +66,12 @@ function getNewState({
|
|||||||
flowchart: {
|
flowchart: {
|
||||||
htmlLabels: false,
|
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",
|
theme: pluginState.isDark ? "dark" : "default",
|
||||||
fontFamily: "inherit",
|
fontFamily: "inherit",
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user