diff --git a/app/w/[id]/workflow.tsx b/app/w/[id]/workflow.tsx index 69fe2fe95..abd4c746a 100644 --- a/app/w/[id]/workflow.tsx +++ b/app/w/[id]/workflow.tsx @@ -15,6 +15,7 @@ import ReactFlow, { XYPosition, useReactFlow, ReactFlowProvider, + ConnectionLineType, } from 'reactflow' import 'reactflow/dist/style.css' import { getBlock } from '../components/blocks/configs' @@ -104,6 +105,18 @@ function WorkflowCanvas() { return (
+ e.preventDefault()} fitView - maxZoom={1} + maxZoom={1.1} panOnScroll + defaultEdgeOptions={{ + type: 'smoothstep', + style: { + stroke: '#94a3b8', + strokeWidth: 2, + strokeDasharray: '5', + strokeDashoffset: '0', + animation: 'dashdraw 1s linear infinite', + }, + }} + connectionLineStyle={{ + stroke: '#94a3b8', + strokeWidth: 2, + strokeDasharray: '5', + strokeDashoffset: '0', + animation: 'dashdraw 1s linear infinite', + }} + connectionLineType={ConnectionLineType.SmoothStep} > diff --git a/app/w/components/blocks/components/workflow-block/workflow-block.tsx b/app/w/components/blocks/components/workflow-block/workflow-block.tsx index a7648a477..01a5e5c59 100644 --- a/app/w/components/blocks/components/workflow-block/workflow-block.tsx +++ b/app/w/components/blocks/components/workflow-block/workflow-block.tsx @@ -2,6 +2,7 @@ import { Card } from '@/components/ui/card' import { BlockConfig, SubBlockConfig } from '../../types/block' import { SubBlock } from './sub-block/sub-block' import { Handle, Position } from 'reactflow' +import { cn } from '@/lib/utils' interface WorkflowBlockProps { id: string @@ -45,7 +46,13 @@ export function WorkflowBlock({ id, type, config, name }: WorkflowBlockProps) {
@@ -78,7 +85,13 @@ export function WorkflowBlock({ id, type, config, name }: WorkflowBlockProps) { )