aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/DiagramBox.tsx
diff options
context:
space:
mode:
authorZachary Zhang <zacharyzhang7@gmail.com>2024-06-07 12:18:03 -0400
committerZachary Zhang <zacharyzhang7@gmail.com>2024-06-07 12:18:03 -0400
commit6cce041a907ba2c4721a9202218169d3f5db09c2 (patch)
treefe53d0fb074c37b352e4f69c539c6fd95e4ebf84 /src/client/views/nodes/DiagramBox.tsx
parent551ef2a117325faf90fd9f8087e9ffba39f7322e (diff)
fix squished timeline diagram
Diffstat (limited to 'src/client/views/nodes/DiagramBox.tsx')
-rw-r--r--src/client/views/nodes/DiagramBox.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/DiagramBox.tsx b/src/client/views/nodes/DiagramBox.tsx
index cd58ef846..af4410394 100644
--- a/src/client/views/nodes/DiagramBox.tsx
+++ b/src/client/views/nodes/DiagramBox.tsx
@@ -43,7 +43,7 @@ export class DiagramBox extends ViewBoxAnnotatableComponent<FieldViewProps>() {
startOnLoad: true,
darkMode: true,
flowchart: { useMaxWidth: false, htmlLabels: true, curve: 'cardinal' },
- gantt: { barGap: 1 },
+ gantt: { useMaxWidth: true, useWidth: 2000 },
});
this.mermaidCode = 'a';
const docArray: Doc[] = DocListCast(this.Document.data);
@@ -327,5 +327,5 @@ export class DiagramBox extends ViewBoxAnnotatableComponent<FieldViewProps>() {
Docs.Prototypes.TemplateMap.set(DocumentType.DIAGRAM, {
layout: { view: DiagramBox, dataField: 'dadta' },
- options: { _height: 300, _layout_fitWidth: true, _layout_nativeDimEditable: true, _layout_reflowVertical: true, waitForDoubleClickToClick: 'always', systemIcon: 'BsGlobe' },
+ options: { _height: 300, _layout_fitWidth: false, _layout_nativeDimEditable: true, _layout_reflowVertical: true, waitForDoubleClickToClick: 'always', _layout_reflowHorizontal: true, systemIcon: 'BsGlobe' },
});