From 6a402cff78d09b45f40727a780bc7408e6aedead Mon Sep 17 00:00:00 2001 From: mlogclub Date: Sun, 28 Jun 2026 09:28:04 +0800 Subject: [PATCH] feat: improve condition node form layout and enhance flowgram node renderer styling --- .../ai-workflows/_components/flowgram-node-registries.tsx | 8 +++----- .../ai-workflows/_components/flowgram-node-renderer.tsx | 2 +- 2 files changed, 4 insertions(+), 6 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 8fa21d0..3057032 100644 --- a/web/app/dashboard/ai-workflows/_components/flowgram-node-registries.tsx +++ b/web/app/dashboard/ai-workflows/_components/flowgram-node-registries.tsx @@ -106,7 +106,7 @@ function ConditionNodeForm({ fallbackTitle }: { fallbackTitle: string }) { {branches.map((branch) => (
{branch.name || (branch.default ? "默认分支" : branch.id)} @@ -119,10 +119,8 @@ function ConditionNodeForm({ fallbackTitle }: { fallbackTitle: string }) { - - + className="absolute -right-4 top-1/2 size-0" + />
))} diff --git a/web/app/dashboard/ai-workflows/_components/flowgram-node-renderer.tsx b/web/app/dashboard/ai-workflows/_components/flowgram-node-renderer.tsx index dbd74b9..e5d6939 100644 --- a/web/app/dashboard/ai-workflows/_components/flowgram-node-renderer.tsx +++ b/web/app/dashboard/ai-workflows/_components/flowgram-node-renderer.tsx @@ -25,7 +25,7 @@ export function FlowgramNodeRenderer(props: WorkflowNodeProps) {