Skip to content
TypeScript

fix(web): diff counts follow the selected color palette (#18288)

₿itconymba1907e8e0b2
diff --git a/apps/web/src/components/GitActionsControl.tsx b/apps/web/src/components/GitActionsControl.tsx
index aaef0fe45f6..85b16e67f3e 100644
--- a/apps/web/src/components/GitActionsControl.tsx
+++ b/apps/web/src/components/GitActionsControl.tsx
@@ -1843,8 +1843,10 @@ export default function GitActionsControl({
<FileDiffIcon className={THREAD_DETAILS_PANEL_ICON_CLASS} aria-hidden />
<span className={cn("flex-1 text-left", THREAD_DETAILS_PANEL_LABEL_CLASS)}>Changes</span>
<span className="flex items-center gap-1 font-mono text-2xs tabular-nums">
- <span className="text-success">+{formatDiffCount(changesTotals?.insertions ?? 0)}</span>
- <span className="text-destructive">
+ <span className="text-diff-addition">
+ +{formatDiffCount(changesTotals?.insertions ?? 0)}
+ </span>
+ <span className="text-diff-deletion">
-{formatDiffCount(changesTotals?.deletions ?? 0)}
</span>
</span>
diff --git a/apps/web/src/components/chat/V2ItemInspector.tsx b/apps/web/src/components/chat/V2ItemInspector.tsx
index 217811021bd..45b3ad96c18 100644
--- a/apps/web/src/components/chat/V2ItemInspector.tsx
+++ b/apps/web/src/components/chat/V2ItemInspector.tsx
@@ -288,8 +288,8 @@ export const V2ItemInspector = memo(function V2ItemInspector(props: V2ItemInspec
</span>
{item.additions !== undefined || item.deletions !== undefined ? (
<span>
- <span className="text-success">+{formatDiffCount(item.additions ?? 0)}</span>{" "}
- <span className="text-destructive">-{formatDiffCount(item.deletions ?? 0)}</span>
+ <span className="text-diff-addition">+{formatDiffCount(item.additions ?? 0)}</span>{" "}
+ <span className="text-diff-deletion">-{formatDiffCount(item.deletions ?? 0)}</span>
</span>
) : null}
{item.runId !== null ? (