diff --git a/web/src/components/card/SearchThumbnail.tsx b/web/src/components/card/SearchThumbnail.tsx index 72a560deb..e96632400 100644 --- a/web/src/components/card/SearchThumbnail.tsx +++ b/web/src/components/card/SearchThumbnail.tsx @@ -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({ - {[objectLabel] + {[searchResult.sub_label ?? objectLabel] .filter( (item) => item !== undefined && !item.includes("-verified"), ) diff --git a/web/src/components/card/SearchThumbnailFooter.tsx b/web/src/components/card/SearchThumbnailFooter.tsx index 8c4fb82b5..b959a82c5 100644 --- a/web/src/components/card/SearchThumbnailFooter.tsx +++ b/web/src/components/card/SearchThumbnailFooter.tsx @@ -34,9 +34,8 @@ export default function SearchThumbnailFooter({ return (
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", )} >
@@ -49,7 +48,7 @@ export default function SearchThumbnailFooter({ )} {formattedDate}
-
+