mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +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;
|
||||
}
|
||||
|
||||
if (
|
||||
config.model.attributes_map[searchResult.label].includes(
|
||||
searchResult.sub_label,
|
||||
)
|
||||
) {
|
||||
return searchResult.sub_label;
|
||||
}
|
||||
|
||||
return `${searchResult.label}-verified`;
|
||||
}, [config, searchResult]);
|
||||
|
||||
@ -102,7 +94,7 @@ export default function SearchThumbnail({
|
||||
</div>
|
||||
<TooltipPortal>
|
||||
<TooltipContent className="capitalize">
|
||||
{[objectLabel]
|
||||
{[searchResult.sub_label ?? objectLabel]
|
||||
.filter(
|
||||
(item) => item !== undefined && !item.includes("-verified"),
|
||||
)
|
||||
|
@ -34,9 +34,8 @@ export default function SearchThumbnailFooter({
|
||||
return (
|
||||
<div
|
||||
className={cn(
|
||||
"flex w-full flex-row items-center justify-between",
|
||||
columns > 4 &&
|
||||
"items-start sm:flex-col sm:gap-2 lg:flex-row lg:items-center lg:gap-1",
|
||||
"flex w-full flex-row items-center justify-between gap-2",
|
||||
columns > 4 && "items-start sm:flex-col lg:flex-row lg:items-center",
|
||||
)}
|
||||
>
|
||||
<div className="flex flex-col items-start text-xs text-primary-variant">
|
||||
@ -49,7 +48,7 @@ export default function SearchThumbnailFooter({
|
||||
)}
|
||||
{formattedDate}
|
||||
</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
|
||||
searchResult={searchResult}
|
||||
findSimilar={findSimilar}
|
||||
|
Loading…
Reference in New Issue
Block a user