Skip to content

Commit 8fef9b4

Browse files
committed
fix(web): palette suggestions drop match bolding
1 parent 5864678 commit 8fef9b4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎apps/web/src/components/CommandPalette.logic.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,8 @@ export function filterCommandPaletteGroups(input: {
606606
)
607607
.slice(0, limit)
608608
.map(({ item, match }) => {
609+
// Suggestion titles are the query restated, so bolding them bolds the whole row.
610+
if (group.value === "nested-search") return item;
609611
if (match.ranges.length > 0) return { ...item, titleRanges: match.ranges };
610612
// Built only for the rows shown.
611613
const matchHint = match.explain?.();

0 commit comments

Comments
 (0)