From 325e3631326de0b4b7c1c5cd97bb4a997fbed795 Mon Sep 17 00:00:00 2001 From: kev1n77 Date: Mon, 7 Sep 2026 15:21:33 +0800 Subject: [PATCH] fix(web-ui): constrain permission approval band width for long commands --- .../src/flow_chat/components/ChatInputApprovalBand.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/web-ui/src/flow_chat/components/ChatInputApprovalBand.scss b/src/web-ui/src/flow_chat/components/ChatInputApprovalBand.scss index ffb022f657..9e4bde19ed 100644 --- a/src/web-ui/src/flow_chat/components/ChatInputApprovalBand.scss +++ b/src/web-ui/src/flow_chat/components/ChatInputApprovalBand.scss @@ -6,6 +6,11 @@ flex-direction: column; gap: 5px; box-sizing: border-box; + // The composer centers its children, so constrain the band before truncating + // long resources; otherwise its intrinsic width can exceed the composer. + width: 100%; + min-width: 0; + max-width: 100%; margin-bottom: 6px; padding: 8px 10px; border: 1px solid var(--openbitfun-color-status-warning-border);