diff --git a/web/app/dashboard/ai-workflows/_components/workflow-editor.tsx b/web/app/dashboard/ai-workflows/_components/workflow-editor.tsx index 57c3618..0fd5715 100644 --- a/web/app/dashboard/ai-workflows/_components/workflow-editor.tsx +++ b/web/app/dashboard/ai-workflows/_components/workflow-editor.tsx @@ -20,7 +20,7 @@ import { type NodeProps, type ReactFlowInstance, } from "@xyflow/react" -import { AlertCircleIcon, CheckCircle2Icon, PlusIcon } from "lucide-react" +import { AlertCircleIcon, CheckCircle2Icon } from "lucide-react" import { useCallback, useEffect, useMemo, useRef, useState } from "react" import { Badge } from "@/components/ui/badge" @@ -343,9 +343,8 @@ export function WorkflowEditor({ } addNode(spec) }} - className="flex w-full cursor-grab items-start gap-2 rounded-md border bg-background px-3 py-2 text-left text-sm hover:bg-muted active:cursor-grabbing" + className="flex w-full cursor-grab rounded-md border bg-background px-3 py-2 text-left text-sm hover:bg-muted active:cursor-grabbing" > - {spec.title} @@ -394,9 +393,6 @@ export function WorkflowEditor({ -
- 从节点右侧圆点拖到下一个节点,或依次点击两个连接点完成连线。 -
{pendingNodeDrag?.active ? (