Skip to content

Commit ea322fd

Browse files
committed
fix(ui/chat): align 'Thinking' header with Task Completed; restore body padding (px-3); make lightbulb icon yellow
1 parent 8d8111f commit ea322fd

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

webview-ui/src/components/chat/ReasoningBlock.tsx

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,18 +72,22 @@ export const ReasoningBlock = ({ content, ts, isStreaming, isLast, metadata }: R
7272
const secondsLabel = t("chat:reasoning.seconds", { count: seconds })
7373

7474
return (
75-
<div className="px-3 py-1">
76-
<div className="flex items-center gap-2 mb-1">
77-
<span className="codicon codicon-light-bulb text-muted-foreground" />
78-
<span className="font-medium text-vscode-foreground">{t("chat:reasoning.thinking")}</span>
79-
<span className="font-medium text-vscode-foreground tabular-nums flex items-center gap-1">
80-
<span className="codicon codicon-history" style={{ fontSize: "inherit" }} />
75+
<div className="py-1">
76+
<div className="flex items-center justify-between mb-[10px]">
77+
<div className="flex items-center gap-2">
78+
<span className="codicon codicon-light-bulb" style={{ color: "var(--vscode-charts-yellow)" }} />
79+
<span className="font-bold text-vscode-foreground">{t("chat:reasoning.thinking")}</span>
80+
</div>
81+
<span className="text-vscode-foreground tabular-nums flex items-center gap-1">
82+
<span className="codicon codicon-clock" style={{ fontSize: "inherit" }} />
8183
{secondsLabel}
8284
</span>
8385
</div>
84-
<div className="italic text-muted-foreground">
85-
<MarkdownBlock markdown={content} />
86-
</div>
86+
{(content?.trim()?.length ?? 0) > 0 && (
87+
<div className="px-3 italic text-vscode-descriptionForeground">
88+
<MarkdownBlock markdown={content} />
89+
</div>
90+
)}
8791
</div>
8892
)
8993
}

0 commit comments

Comments
 (0)