File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/Frontend/src/components/messages2/FlowDiagram Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -207,7 +207,9 @@ async function layoutGraph() {
207
207
nodes .value = layout (nodes .value , edges .value , showAddress .value );
208
208
209
209
await nextTick (() => {
210
- fitView ();
210
+ if (store .state .data .id ) {
211
+ fitView ({ nodes: [store .state .data .id ], maxZoom: 0.9 });
212
+ }
211
213
});
212
214
}
213
215
@@ -227,7 +229,7 @@ const errorColor = hexToCSSFilter("#be514a").filter;
227
229
<div v-if =" store.conversationData.failed_to_load" class =" alert alert-info" >FlowDiagram data is unavailable.</div >
228
230
<LoadingSpinner v-else-if =" store.conversationData.loading" />
229
231
<div v-else id =" tree-container" >
230
- <VueFlow :nodes =" nodes" :edges =" edges" :min-zoom =" 0.1" :fit-view-on-init = " true " :only-render-visible-elements =" true" @nodes-initialized =" layoutGraph" >
232
+ <VueFlow :nodes =" nodes" :edges =" edges" :min-zoom =" 0.1" :max-zoom = " 1.2 " :only-render-visible-elements =" true" @nodes-initialized =" layoutGraph" >
231
233
<Controls :show-interactive =" false" position =" top-left" class =" controls" >
232
234
<ControlButton v-tippy =" showAddress ? `Hide endpoints` : `Show endpoints`" @click =" toggleAddress" >
233
235
<i class =" fa pa-flow-endpoint" :style =" { filter: showAddress ? greenColor : blackColor }" ></i >
You can’t perform that action at this time.
0 commit comments