From 9eb9fabee0d31da4270a689735cf9a50c2d4ad1e Mon Sep 17 00:00:00 2001 From: Sam Hoang Van Date: Fri, 13 Jun 2025 20:01:47 +0700 Subject: [PATCH] feat(ui): sync BatchDiffApproval styling with BatchFilePermission (#4640) --- .../src/components/chat/BatchDiffApproval.tsx | 32 ++++++++++--------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/webview-ui/src/components/chat/BatchDiffApproval.tsx b/webview-ui/src/components/chat/BatchDiffApproval.tsx index 03f06d4106..24ad8d489d 100644 --- a/webview-ui/src/components/chat/BatchDiffApproval.tsx +++ b/webview-ui/src/components/chat/BatchDiffApproval.tsx @@ -33,22 +33,24 @@ export const BatchDiffApproval = memo(({ files = [], ts }: BatchDiffApprovalProp return (
- {files.map((file) => { - // Combine all diffs into a single diff string for this file - const combinedDiff = file.diffs?.map((diff) => diff.content).join("\n\n") || file.content +
+ {files.map((file) => { + // Combine all diffs into a single diff string for this file + const combinedDiff = file.diffs?.map((diff) => diff.content).join("\n\n") || file.content - return ( -
- handleToggleExpand(file.path)} - /> -
- ) - })} + return ( +
+ handleToggleExpand(file.path)} + /> +
+ ) + })} +
) })