Skip to content

Commit 2031fbf

Browse files
committed
fix(web): diff counts follow the selected color palette
1 parent 2625327 commit 2031fbf

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

‎apps/web/src/components/GitActionsControl.tsx‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1911,8 +1911,10 @@ export default function GitActionsControl({
19111911
<FileDiffIcon className={THREAD_DETAILS_PANEL_ICON_CLASS} aria-hidden />
19121912
<span className={cn("flex-1 text-left", THREAD_DETAILS_PANEL_LABEL_CLASS)}>Changes</span>
19131913
<span className="flex items-center gap-1 font-mono text-2xs tabular-nums">
1914-
<span className="text-success">+{formatDiffCount(changesTotals?.insertions ?? 0)}</span>
1915-
<span className="text-destructive">
1914+
<span className="text-diff-addition">
1915+
+{formatDiffCount(changesTotals?.insertions ?? 0)}
1916+
</span>
1917+
<span className="text-diff-deletion">
19161918
-{formatDiffCount(changesTotals?.deletions ?? 0)}
19171919
</span>
19181920
</span>

‎apps/web/src/components/chat/V2ItemInspector.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,8 @@ export const V2ItemInspector = memo(function V2ItemInspector(props: V2ItemInspec
262262
</span>
263263
{item.additions !== undefined || item.deletions !== undefined ? (
264264
<span>
265-
<span className="text-success">+{formatDiffCount(item.additions ?? 0)}</span>{" "}
266-
<span className="text-destructive">-{formatDiffCount(item.deletions ?? 0)}</span>
265+
<span className="text-diff-addition">+{formatDiffCount(item.additions ?? 0)}</span>{" "}
266+
<span className="text-diff-deletion">-{formatDiffCount(item.deletions ?? 0)}</span>
267267
</span>
268268
) : null}
269269
{item.runId !== null ? (

0 commit comments

Comments
 (0)