fix: Confirmed the follow-up styling tweak is in place: chat titles now render without font-semibold

This commit is contained in:
Jakob Malmo 2025-10-16 20:20:01 +02:00 committed by Roo Code
parent f14b9683dd
commit ae2ea0f53d
2 changed files with 3 additions and 6 deletions

View file

@ -86,12 +86,9 @@ const TaskItem = ({
)}
data-testid="task-content">
{displayHighlight ? (
<span
className={cn(showTitle && "font-semibold")}
dangerouslySetInnerHTML={{ __html: displayHighlight }}
/>
<span dangerouslySetInnerHTML={{ __html: displayHighlight }} />
) : (
<span className={cn(showTitle && "font-semibold")}>{displayText}</span>
<span>{displayText}</span>
)}
</div>

View file

@ -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", () => {