Skip to content

Commit af107c8

Browse files
bitconymclaude
andcommitted
fix(web): thread details change counts follow the diff color setting
The thread details Changes row and the item inspector's file change counts hardcoded text-success/text-destructive, so they stayed green/red when the blue/orange diff palette was selected. Use the diff palette tokens like the other diff counts. Fixes #16414 Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent a7a2230 commit af107c8

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1938,8 +1938,8 @@ export default function GitActionsControl({
19381938
<FileDiffIcon className={THREAD_DETAILS_PANEL_ICON_CLASS} aria-hidden />
19391939
<span className="flex-1 text-left">Changes</span>
19401940
<span className="flex items-center gap-1 font-mono text-2xs tabular-nums">
1941-
<span className="text-success">+{changesTotals?.insertions ?? 0}</span>
1942-
<span className="text-destructive">-{changesTotals?.deletions ?? 0}</span>
1941+
<span className="text-diff-addition">+{changesTotals?.insertions ?? 0}</span>
1942+
<span className="text-diff-deletion">-{changesTotals?.deletions ?? 0}</span>
19431943
</span>
19441944
</ThreadDetailsControl>
19451945
) : null}

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

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

0 commit comments

Comments
 (0)