fix(canvas): clamp approval banner text; fix infra compose network key #3104

Merged
devops-engineer merged 1 commits from fix/canvas-approval-clamp-2026-06 into main 2026-06-22 02:47:28 +00:00
2 changed files with 7 additions and 3 deletions
+6 -2
View File
@@ -71,9 +71,13 @@ export function ApprovalBanner() {
</div>
<div className="flex-1 min-w-0">
<div className="text-xs text-amber-200 font-semibold">{approval.workspace_name} needs approval</div>
<div className="text-sm text-amber-100 mt-0.5 font-medium">{approval.action}</div>
{/* Clamp action + reason: agents can author very long messages,
and unclamped these sprawled the banner into a full-canvas
text column. line-clamp works here (plain-text fields, not
markdown). break-words handles long unbroken tokens. */}
<div className="text-sm text-amber-100 mt-0.5 font-medium line-clamp-2 break-words">{approval.action}</div>
{approval.reason && (
<div className="text-xs text-warm/70 mt-1">{approval.reason}</div>
<div className="text-xs text-warm/70 mt-1 line-clamp-3 break-words">{approval.reason}</div>
)}
<div className="flex gap-2 mt-3">
<button
+1 -1
View File
@@ -111,7 +111,7 @@ services:
- "8233:8080"
networks:
default:
molecule-core-net:
name: molecule-core-net
external: true