Skip to content

Commit ba1907e

Browse files
authored
fix(web): diff counts follow the selected color palette (pingdotgg#18288)
1 parent 167f5ec commit ba1907e

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
@@ -1843,8 +1843,10 @@ export default function GitActionsControl({
18431843
<FileDiffIcon className={THREAD_DETAILS_PANEL_ICON_CLASS} aria-hidden />
18441844
<span className={cn("flex-1 text-left", THREAD_DETAILS_PANEL_LABEL_CLASS)}>Changes</span>
18451845
<span className="flex items-center gap-1 font-mono text-2xs tabular-nums">
1846-
<span className="text-success">+{formatDiffCount(changesTotals?.insertions ?? 0)}</span>
1847-
<span className="text-destructive">
1846+
<span className="text-diff-addition">
1847+
+{formatDiffCount(changesTotals?.insertions ?? 0)}
1848+
</span>
1849+
<span className="text-diff-deletion">
18481850
-{formatDiffCount(changesTotals?.deletions ?? 0)}
18491851
</span>
18501852
</span>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,8 @@ export const V2ItemInspector = memo(function V2ItemInspector(props: V2ItemInspec
288288
</span>
289289
{item.additions !== undefined || item.deletions !== undefined ? (
290290
<span>
291-
<span className="text-success">+{formatDiffCount(item.additions ?? 0)}</span>{" "}
292-
<span className="text-destructive">-{formatDiffCount(item.deletions ?? 0)}</span>
291+
<span className="text-diff-addition">+{formatDiffCount(item.additions ?? 0)}</span>{" "}
292+
<span className="text-diff-deletion">-{formatDiffCount(item.deletions ?? 0)}</span>
293293
</span>
294294
) : null}
295295
{item.runId !== null ? (

0 commit comments

Comments
 (0)