From 6d6991bca199d9100ae152b5db1d55195d395688 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Thu, 12 Feb 2026 18:45:46 -0800 Subject: [PATCH] Refine pending approval panel styles - Constrain pending approval cards to a centered max-width section with updated padding - Improve light/dark theme contrast for approval detail text and action buttons - Keep existing approval actions and behavior unchanged while updating visual hierarchy --- apps/web/src/components/ChatView.tsx | 116 ++++++++++++++------------- 1 file changed, 60 insertions(+), 56 deletions(-) diff --git a/apps/web/src/components/ChatView.tsx b/apps/web/src/components/ChatView.tsx index 3497b3bc5feeb9aa2e8c58a8e040f4bb0abefb54..e27d5b5cf7269b98bea0819a76a608a7fdc770cc 100644 --- a/apps/web/src/components/ChatView.tsx +++ b/apps/web/src/components/ChatView.tsx @@ -888,64 +888,68 @@ export default function ChatView() { )} {pendingApprovals.length > 0 && ( -
- {pendingApprovals.map((approval) => { - const isResponding = respondingRequestIds.includes(approval.requestId); - return ( -
-

- {approval.requestKind === "command" - ? "Command approval requested" - : "File-change approval requested"} -

- {approval.detail && ( -

- {approval.detail} +

+
+ {pendingApprovals.map((approval) => { + const isResponding = respondingRequestIds.includes(approval.requestId); + return ( +
+

+ {approval.requestKind === "command" + ? "Command approval requested" + : "File-change approval requested"}

- )} -
- - - - + {approval.detail && ( +

+ {approval.detail} +

+ )} +
+ + + + +
-
- ); - })} + ); + })} +
)} -- 2.54.0