Always display confidence chip on similarity searches (#14207)

This commit is contained in:
Josh Hawkins
2024-10-07 21:15:49 -05:00
committed by GitHub
parent 2541a345d0
commit 74efc94649
2 changed files with 8 additions and 14 deletions

View File

@@ -79,19 +79,12 @@ export default function SearchThumbnail({
<div className="flex">
<TooltipTrigger asChild>
<div className="mx-3 pb-1 text-sm text-white">
{
<>
<Chip
className={`z-0 flex items-start justify-between space-x-1 bg-gray-500 bg-gradient-to-br from-gray-400 to-gray-500`}
onClick={() => onClick(searchResult)}
>
{getIconForLabel(
searchResult.label,
"size-3 text-white",
)}
</Chip>
</>
}
<Chip
className={`z-0 flex items-start justify-between space-x-1 bg-gray-500 bg-gradient-to-br from-gray-400 to-gray-500`}
onClick={() => onClick(searchResult)}
>
{getIconForLabel(searchResult.label, "size-3 text-white")}
</Chip>
</div>
</TooltipTrigger>
</div>