Skip to content

Commit 8dd17dd

Browse files
authored
Fix <b> rendering issue for aiChat suggestions (#1941)
1 parent 340b8dd commit 8dd17dd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

special-pages/pages/new-tab/app/omnibar/components/SuggestionsList.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@ function SuggestionsListItem({ suggestion, onOpenSuggestion, onSubmitChat }) {
103103
>
104104
<SuggestionIcon suggestion={suggestion} />
105105
<span class={styles.title}>
106-
{startsWithIgnoreCase(title, term) ? (
106+
{suggestion.kind === 'aiChat' ? (
107+
<b>{title}</b>
108+
) : startsWithIgnoreCase(title, term) ? (
107109
<>
108110
<b>{title.slice(0, term.length)}</b>
109111
{title.slice(term.length)}

0 commit comments

Comments
 (0)