diff options
-rw-r--r-- | src/client/views/nodes/DiagramBox.scss | 13 | ||||
-rw-r--r-- | src/client/views/nodes/DiagramBox.tsx | 4 |
2 files changed, 2 insertions, 15 deletions
diff --git a/src/client/views/nodes/DiagramBox.scss b/src/client/views/nodes/DiagramBox.scss index 58a98cc59..b3d50a4bd 100644 --- a/src/client/views/nodes/DiagramBox.scss +++ b/src/client/views/nodes/DiagramBox.scss @@ -13,17 +13,6 @@ flex-direction: column; align-items: center; justify-content: center; - .DIYNodeBox { - /* existing code */ - - .DIYNodeBox-iframe { - height: 100%; - width: 100%; - border: none; - - } - } - .search-bar { display: flex; flex-wrap: wrap; @@ -62,8 +51,6 @@ display: flex; justify-content: center; align-items: center; - width:100%; - height:100%; svg{ max-width: none !important; } 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' }, }); |