From 27b5debd663a754b8c46c49c89df42a563a5a330 Mon Sep 17 00:00:00 2001 From: Winston Hsiao Date: Sat, 16 Nov 2024 21:45:46 -0800 Subject: [PATCH] Adjust listing and browse UI --- .../components/listing/ListingRenderer.tsx | 24 +++++++++---------- .../components/listings/ListingGridCard.tsx | 2 +- frontend/src/components/pages/Browse.tsx | 2 +- 3 files changed, 13 insertions(+), 15 deletions(-) diff --git a/frontend/src/components/listing/ListingRenderer.tsx b/frontend/src/components/listing/ListingRenderer.tsx index c8228b49..0a29fbe8 100644 --- a/frontend/src/components/listing/ListingRenderer.tsx +++ b/frontend/src/components/listing/ListingRenderer.tsx @@ -121,22 +121,20 @@ const ListingRenderer = ({ listing }: { listing: ListingResponse }) => {
{/* Build this robot */} -
-
- - + + + {canEdit && ( + - {canEdit && ( - - )} -
+ )}
diff --git a/frontend/src/components/listings/ListingGridCard.tsx b/frontend/src/components/listings/ListingGridCard.tsx index 312d85b3..0a1cab36 100644 --- a/frontend/src/components/listings/ListingGridCard.tsx +++ b/frontend/src/components/listings/ListingGridCard.tsx @@ -24,7 +24,7 @@ const ListingGridCard = ({ }; return ( -
+
{listing?.artifacts[0]?.artifact_type === "image" && listing?.artifacts[0]?.urls.small ? ( diff --git a/frontend/src/components/pages/Browse.tsx b/frontend/src/components/pages/Browse.tsx index 64795944..fff2f780 100644 --- a/frontend/src/components/pages/Browse.tsx +++ b/frontend/src/components/pages/Browse.tsx @@ -116,7 +116,7 @@ const Browse = () => { return ( -
+

Community Robots Hub