From bbb288189fcf9cde556e2612bc18ede3a3c0a6f7 Mon Sep 17 00:00:00 2001 From: cc Date: Tue, 14 Apr 2026 19:58:18 +0200 Subject: [PATCH] Improve diff summary layout and fix dark mode colors - Display each changed key as separate colored badge - Fix dark mode contrast for added/removed/changed badges - Better visual organization with flex-wrap layout --- src/components/diff-viewer.tsx | 56 ++++++++++++++++++++++------------ 1 file changed, 37 insertions(+), 19 deletions(-) diff --git a/src/components/diff-viewer.tsx b/src/components/diff-viewer.tsx index 1f8de24..6727645 100644 --- a/src/components/diff-viewer.tsx +++ b/src/components/diff-viewer.tsx @@ -286,32 +286,50 @@ function DiffSummary({ diff }: { diff: PlistDiff }) { {totalChanges} changes ({summaryParts.join(", ")}) - + {diff.added.length > 0 && ( -
- - - {diff.added.length} added:{" "} - {diff.added.join(", ")} - +
+
+ + {diff.added.length} added +
+
+ {diff.added.map((key) => ( + + {key} + + ))} +
)} {diff.removed.length > 0 && ( -
- - - {diff.removed.length} removed:{" "} - {diff.removed.join(", ")} - +
+
+ + {diff.removed.length} removed +
+
+ {diff.removed.map((key) => ( + + {key} + + ))} +
)} {diff.changed.length > 0 && ( -
- - - {diff.changed.length} changed:{" "} - {diff.changed.join(", ")} - +
+
+ + {diff.changed.length} changed +
+
+ {diff.changed.map((key) => ( + + {key} + + ))} +
)}