diff --git a/packages/webui/src/components/debug/message-builder.tsx b/packages/webui/src/components/debug/message-builder.tsx
index b2bee066..e9207b3e 100644
--- a/packages/webui/src/components/debug/message-builder.tsx
+++ b/packages/webui/src/components/debug/message-builder.tsx
@@ -128,11 +128,29 @@ export function MessageBuilder({ segments, onChange, uin, groupId, depth = 0 }:
onChange(next);
};
+ // Keep the top-level canvas concentric with its rows at any operator-selected
+ // corner radius. At the default 12px radius this is 20px → 12px over the 8px
+ // inset. Nested forward builders deliberately avoid another canvas surface:
+ // cards-inside-cards add visual noise and cannot remain concentric with a
+ // parent row once the operator selects a compact radius.
+ const nested = depth > 0;
+ const canvasRadius = 'calc(var(--radius) + 0.5rem)';
+ const rowRadius = depth === 0
+ ? 'var(--radius)'
+ : depth === 1
+ ? 'max(0px, calc(var(--radius) - 0.25rem))'
+ : 'max(0px, calc(var(--radius) - 0.5rem))';
+
return (
- // A bounded "compose canvas" at every level — so the empty hint reads as an
- // intentional empty state inside a defined region rather than a stray
- // centered line floating in the left-aligned form (Apple-HIG alignment).
-
+ // The root is a bounded compose canvas, so its empty hint reads as an
+ // intentional empty state rather than a stray line. Nested builders inherit
+ // the surrounding node surface instead of drawing another card within it.
+
{segments.length === 0 && (
空消息 — 点下方「添加段」开始
)}
@@ -142,7 +160,8 @@ export function MessageBuilder({ segments, onChange, uin, groupId, depth = 0 }:
key={s._id}
onDragOver={(e) => e.preventDefault()}
onDrop={(e) => { e.stopPropagation(); if (dragFrom !== null) move(dragFrom, i); setDragFrom(null); }}
- className="rounded-xl border border-border/50 bg-card/60 p-2"
+ className="border border-border/50 bg-card/60 p-2"
+ style={{ borderRadius: rowRadius }}
>
{/* Drag is scoped to the grip handle only — making the whole row
draggable hijacked text selection inside the segment inputs (you
@@ -184,7 +203,7 @@ export function MessageBuilder({ segments, onChange, uin, groupId, depth = 0 }: