mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-02-14 00:17:05 +01:00
Fix sublabel and icon spacing (#14651)
This commit is contained in:
parent
33825f6d96
commit
8aeb597780
@ -41,14 +41,6 @@ export default function SearchThumbnail({
|
|||||||
return searchResult.label;
|
return searchResult.label;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
|
||||||
config.model.attributes_map[searchResult.label].includes(
|
|
||||||
searchResult.sub_label,
|
|
||||||
)
|
|
||||||
) {
|
|
||||||
return searchResult.sub_label;
|
|
||||||
}
|
|
||||||
|
|
||||||
return `${searchResult.label}-verified`;
|
return `${searchResult.label}-verified`;
|
||||||
}, [config, searchResult]);
|
}, [config, searchResult]);
|
||||||
|
|
||||||
@ -102,7 +94,7 @@ export default function SearchThumbnail({
|
|||||||
</div>
|
</div>
|
||||||
<TooltipPortal>
|
<TooltipPortal>
|
||||||
<TooltipContent className="capitalize">
|
<TooltipContent className="capitalize">
|
||||||
{[objectLabel]
|
{[searchResult.sub_label ?? objectLabel]
|
||||||
.filter(
|
.filter(
|
||||||
(item) => item !== undefined && !item.includes("-verified"),
|
(item) => item !== undefined && !item.includes("-verified"),
|
||||||
)
|
)
|
||||||
|
@ -34,9 +34,8 @@ export default function SearchThumbnailFooter({
|
|||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={cn(
|
className={cn(
|
||||||
"flex w-full flex-row items-center justify-between",
|
"flex w-full flex-row items-center justify-between gap-2",
|
||||||
columns > 4 &&
|
columns > 4 && "items-start sm:flex-col lg:flex-row lg:items-center",
|
||||||
"items-start sm:flex-col sm:gap-2 lg:flex-row lg:items-center lg:gap-1",
|
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<div className="flex flex-col items-start text-xs text-primary-variant">
|
<div className="flex flex-col items-start text-xs text-primary-variant">
|
||||||
@ -49,7 +48,7 @@ export default function SearchThumbnailFooter({
|
|||||||
)}
|
)}
|
||||||
{formattedDate}
|
{formattedDate}
|
||||||
</div>
|
</div>
|
||||||
<div className="flex flex-row items-center justify-end gap-6 md:gap-4">
|
<div className="flex flex-row items-center justify-end gap-5 md:gap-4">
|
||||||
<SearchResultActions
|
<SearchResultActions
|
||||||
searchResult={searchResult}
|
searchResult={searchResult}
|
||||||
findSimilar={findSimilar}
|
findSimilar={findSimilar}
|
||||||
|
Loading…
Reference in New Issue
Block a user