From a65b003b1d42a89b900875820a05b220d5c07d50 Mon Sep 17 00:00:00 2001 From: katty barroso Date: Tue, 15 Oct 2024 19:47:39 +0200 Subject: [PATCH] Fix short description spacing to fit elements --- .../src/components/PoolCard/index.tsx | 29 +++++++++---------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/centrifuge-app/src/components/PoolCard/index.tsx b/centrifuge-app/src/components/PoolCard/index.tsx index f87a8491bf..a45f0d3b66 100644 --- a/centrifuge-app/src/components/PoolCard/index.tsx +++ b/centrifuge-app/src/components/PoolCard/index.tsx @@ -35,7 +35,7 @@ const StyledRouterTextLink = styled(RouterTextLink)` const StyledCard = styled(Card)` width: 100%; max-width: 100%; - height: 320px; + height: 300px; margin-right: 12px; margin-bottom: 12px; @@ -263,24 +263,21 @@ export function PoolCard({ {tranchesData?.map((tranche) => renderText(`${tranche.minInvestment}`))} - {metaData?.pool?.issuer?.shortDescription || - (isTinlakePool && ( - - - {isTinlakePool - ? tinlakeTranches[tinlakeKey].shortDescription - : metaData?.pool?.issuer?.shortDescription} - - - ))} + {(metaData?.pool?.issuer?.shortDescription || isTinlakePool) && ( + + + {isTinlakePool ? tinlakeTranches[tinlakeKey].shortDescription : metaData?.pool?.issuer?.shortDescription} + + + )} + - Asset type - {assetClass ?? '-'} + Asset type + {assetClass ?? '-'} - Investor type - - {' '} + Investor type + {isTinlakePool ? tinlakeTranches[tinlakeKey].investorType : metaData?.pool?.investorType ?? '-'}