Fix sublabel and icon spacing (#14651)

This commit is contained in:
Josh Hawkins 2024-10-29 08:06:19 -05:00 committed by GitHub
parent 33825f6d96
commit 8aeb597780
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 13 deletions

View File

@ -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"),
)

View File

@ -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}