Skip to content

Commit abf7eca

Browse files
committed
fix: Confirmed the follow-up styling tweak is in place: chat titles now render without font-semibold
1 parent b2d8c81 commit abf7eca

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ const TaskHeader = ({
225225
const tooltipKey = currentTitle.length > 0 ? "chat:task.editTitle" : "chat:task.addTitle"
226226
const showTitle = currentTitle.length > 0
227227
const displayNode = showTitle ? (
228-
<span className="truncate text-base font-semibold" data-testid="task-title-text">
228+
<span className="truncate text-base" data-testid="task-title-text">
229229
{currentTitle}
230230
</span>
231231
) : (

webview-ui/src/components/history/TaskItem.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,9 @@ const TaskItem = ({
8585
)}
8686
data-testid="task-content">
8787
{displayHighlight ? (
88-
<span
89-
className={cn(showTitle && "font-semibold")}
90-
dangerouslySetInnerHTML={{ __html: displayHighlight }}
91-
/>
88+
<span dangerouslySetInnerHTML={{ __html: displayHighlight }} />
9289
) : (
93-
<span className={cn(showTitle && "font-semibold")}>{displayText}</span>
90+
<span>{displayText}</span>
9491
)}
9592
</div>
9693
<TaskItemFooter

webview-ui/src/components/history/__tests__/TaskItem.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ describe("TaskItem", () => {
9999
const content = screen.getByTestId("task-content")
100100
expect(content).toHaveTextContent("Important task")
101101
expect(content).not.toHaveTextContent("Test task")
102-
expect(content.querySelector("span")?.className).toContain("font-semibold")
102+
expect(content.querySelector("span")?.className || "").not.toContain("font-semibold")
103103
})
104104

105105
it("falls back to task text when feature disabled", () => {

0 commit comments

Comments
 (0)