File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed
webview-ui/src/components Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff 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 ) : (
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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" , ( ) => {
You can’t perform that action at this time.
0 commit comments