From ae2ea0f53d567d56b7f6263b75cf32c1ffa164bc Mon Sep 17 00:00:00 2001 From: Jakob Malmo Date: Thu, 16 Oct 2025 20:20:01 +0200 Subject: [PATCH] fix: Confirmed the follow-up styling tweak is in place: chat titles now render without font-semibold --- webview-ui/src/components/history/TaskItem.tsx | 7 ++----- .../src/components/history/__tests__/TaskItem.spec.tsx | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/webview-ui/src/components/history/TaskItem.tsx b/webview-ui/src/components/history/TaskItem.tsx index 832650a68d..fdfea3983a 100644 --- a/webview-ui/src/components/history/TaskItem.tsx +++ b/webview-ui/src/components/history/TaskItem.tsx @@ -86,12 +86,9 @@ const TaskItem = ({ )} data-testid="task-content"> {displayHighlight ? ( - + ) : ( - {displayText} + {displayText} )} diff --git a/webview-ui/src/components/history/__tests__/TaskItem.spec.tsx b/webview-ui/src/components/history/__tests__/TaskItem.spec.tsx index 12743b0c7b..e044de9e5d 100644 --- a/webview-ui/src/components/history/__tests__/TaskItem.spec.tsx +++ b/webview-ui/src/components/history/__tests__/TaskItem.spec.tsx @@ -99,7 +99,7 @@ describe("TaskItem", () => { const content = screen.getByTestId("task-content") expect(content).toHaveTextContent("Important task") expect(content).not.toHaveTextContent("Test task") - expect(content.querySelector("span")?.className).toContain("font-semibold") + expect(content.querySelector("span")?.className || "").not.toContain("font-semibold") }) it("falls back to task text when feature disabled", () => {