Skip to content

Commit a436733

Browse files
committed
search: use icon instead of the word star
1 parent 70c0fe9 commit a436733

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/components/search.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ function SearchResultItem({
148148
}
149149
title = match.repository;
150150
subtitle = match.description || "";
151-
context = match.repoStars ? `${match.repoStars} stars` : "";
151+
context = match.repoStars ? `${match.repoStars} ★` : "";
152152
break;
153153
case "commit":
154154
icon.source = Icon.MemoryChip;
@@ -220,7 +220,7 @@ function SearchResultItem({
220220

221221
function getPeekFields(match: SearchMatch) {
222222
const navigationTitle = `Peek ${match.type} result`;
223-
const matchTitle = `${match.repository} ${match.repoStars ? `(${match.repoStars} stars)` : ""}`;
223+
const matchTitle = `${match.repository} ${match.repoStars ? `(${match.repoStars} ★)` : ""}`;
224224
return { navigationTitle, matchTitle };
225225
}
226226

0 commit comments

Comments
 (0)