feat: remove WorkflowSimpleNodeContent and update WorkflowNodeCard for optional children rendering

This commit is contained in:
mlogclub
2026-06-28 12:44:38 +08:00
parent 4ac2dedf97
commit 1525f2e919
3 changed files with 3 additions and 48 deletions
@@ -18,7 +18,7 @@ export function WorkflowNodeCard({
spec?: AIWorkflowNodeSpec
selected: boolean
width?: "normal" | "wide"
children: ReactNode
children?: ReactNode
}) {
const meta = getWorkflowNodeMeta(nodeType)
@@ -46,7 +46,7 @@ export function WorkflowNodeCard({
{spec.description}
</div>
) : null}
<div className="border-t bg-muted/20 px-3 py-2.5">{children}</div>
{children ? <div className="border-t bg-muted/20 px-3 py-2.5">{children}</div> : null}
</div>
</div>
)