From d261aa4d32a5be2fd6fc1bf9fe95cd765d452c1c Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Thu, 22 Dec 2022 06:50:57 -0500 Subject: [PATCH] =?UTF-8?q?fix:=20Temporary=20fix=20for=20Mermaid=20Gantt?= =?UTF-8?q?=20charts=20=E2=80=93=20hardcode=20width=20closes=20#4594?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shared/editor/plugins/Mermaid.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/shared/editor/plugins/Mermaid.ts b/shared/editor/plugins/Mermaid.ts index 0eb434147..0048f0554 100644 --- a/shared/editor/plugins/Mermaid.ts +++ b/shared/editor/plugins/Mermaid.ts @@ -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", });