From 655328d92af54285e41dbeb4d285c81c522272a1 Mon Sep 17 00:00:00 2001 From: mlogclub Date: Sun, 28 Jun 2026 16:40:51 +0800 Subject: [PATCH] feat: remove width prop from WorkflowNodeCard and adjust styling for consistent layout --- .../ai-workflows/_components/flowgram-node-registries.tsx | 1 - .../dashboard/ai-workflows/_components/workflow-node-card.tsx | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/web/app/dashboard/ai-workflows/_components/flowgram-node-registries.tsx b/web/app/dashboard/ai-workflows/_components/flowgram-node-registries.tsx index 13c12fe..e4bfc2f 100644 --- a/web/app/dashboard/ai-workflows/_components/flowgram-node-registries.tsx +++ b/web/app/dashboard/ai-workflows/_components/flowgram-node-registries.tsx @@ -77,7 +77,6 @@ function FlowgramNodeForm({ title={field.value || fallbackTitle} icon={icon} selected={selected} - width={nodeType === "condition" ? "wide" : "normal"} > {nodeType === "condition" ? ( > name="config"> diff --git a/web/app/dashboard/ai-workflows/_components/workflow-node-card.tsx b/web/app/dashboard/ai-workflows/_components/workflow-node-card.tsx index d26b372..c9b2e28 100644 --- a/web/app/dashboard/ai-workflows/_components/workflow-node-card.tsx +++ b/web/app/dashboard/ai-workflows/_components/workflow-node-card.tsx @@ -7,20 +7,18 @@ export function WorkflowNodeCard({ title, icon, selected, - width = "normal", children, }: { title: string icon: string selected: boolean - width?: "normal" | "wide" children?: ReactNode }) { return (