From 2e30009824640f2ce49540cb982e8b310c08d651 Mon Sep 17 00:00:00 2001 From: abhi1992002 Date: Thu, 3 Apr 2025 09:13:31 +0530 Subject: [PATCH] first-commit --- .../src/components/agptui/StoreCard.tsx | 120 +++++++++--------- 1 file changed, 62 insertions(+), 58 deletions(-) diff --git a/autogpt_platform/frontend/src/components/agptui/StoreCard.tsx b/autogpt_platform/frontend/src/components/agptui/StoreCard.tsx index 28c29794aa..a045b79e6d 100644 --- a/autogpt_platform/frontend/src/components/agptui/StoreCard.tsx +++ b/autogpt_platform/frontend/src/components/agptui/StoreCard.tsx @@ -32,7 +32,7 @@ export const StoreCard: React.FC = ({ return (
= ({ } }} > - {/* Header Image Section with Avatar */} -
- {agentImage && ( - {`${agentName} - )} - {!hideAvatar && ( -
- - {avatarSrc && ( - - )} - - {(creatorName || agentName).charAt(0)} - - -
- )} -
+
+ {/* Header Image Section with Avatar - fixed aspect ratio */} +
+ {agentImage && ( + {`${agentName} + )} + {!hideAvatar && ( +
+ + {avatarSrc && ( + + )} + + {(creatorName || agentName).charAt(0)} + + +
+ )} +
- {/* Content Section */} -
- {/* Title and Creator */} -

- {agentName} -

- {!hideAvatar && creatorName && ( -

- by {creatorName} -

- )} - {/* Description */} -

- {description} -

- - {/* Stats Row */} -
-
- {runs.toLocaleString()} runs + {/* Content Section */} +
+
+ {/* Title and Creator */} +

+ {agentName} +

+ {!hideAvatar && creatorName && ( +

+ by {creatorName} +

+ )} + {/* Description */} +

+ {description} +

-
- - {rating.toFixed(1)} - -
- {StarRatingIcons(rating)} + + {/* Stats Row - fixed to bottom */} +
+
+ {runs.toLocaleString()} runs +
+
+ + {rating.toFixed(1)} + +
+ {StarRatingIcons(rating)} +