mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-01-26 00:06:32 +01:00
Always display confidence chip on similarity searches (#14207)
This commit is contained in:
parent
2541a345d0
commit
74efc94649
@ -79,19 +79,12 @@ export default function SearchThumbnail({
|
|||||||
<div className="flex">
|
<div className="flex">
|
||||||
<TooltipTrigger asChild>
|
<TooltipTrigger asChild>
|
||||||
<div className="mx-3 pb-1 text-sm text-white">
|
<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`}
|
||||||
<Chip
|
onClick={() => onClick(searchResult)}
|
||||||
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>
|
||||||
{getIconForLabel(
|
|
||||||
searchResult.label,
|
|
||||||
"size-3 text-white",
|
|
||||||
)}
|
|
||||||
</Chip>
|
|
||||||
</>
|
|
||||||
}
|
|
||||||
</div>
|
</div>
|
||||||
</TooltipTrigger>
|
</TooltipTrigger>
|
||||||
</div>
|
</div>
|
||||||
|
@ -390,7 +390,8 @@ export default function SearchView({
|
|||||||
findSimilar={() => setSimilaritySearch(value)}
|
findSimilar={() => setSimilaritySearch(value)}
|
||||||
onClick={() => onSelectSearch(value, index)}
|
onClick={() => onSelectSearch(value, index)}
|
||||||
/>
|
/>
|
||||||
{searchTerm && (
|
{(searchTerm ||
|
||||||
|
searchFilter?.search_type?.includes("similarity")) && (
|
||||||
<div className={cn("absolute right-2 top-2 z-40")}>
|
<div className={cn("absolute right-2 top-2 z-40")}>
|
||||||
<Tooltip>
|
<Tooltip>
|
||||||
<TooltipTrigger>
|
<TooltipTrigger>
|
||||||
|
Loading…
Reference in New Issue
Block a user