Skip to content

Commit

Permalink
feat: 调整workflow run时viewport的zoom
Browse files Browse the repository at this point in the history
  • Loading branch information
myshell-joe committed Sep 19, 2024
1 parent 68c909f commit 425e1b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/apps/web/src/stores/workflow/workflow-store.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,8 @@ export const createWorkflowStore = () => {
}
if (type === EventStatusEnum.node_start) {
get().flowInstance?.fitView({
minZoom: 0.5,
maxZoom: 1,
minZoom: 0.3,
maxZoom: 1.5,
nodes: [{ id: data?.node_id as string }],
padding: 400,
});
Expand Down

0 comments on commit 425e1b4

Please sign in to comment.