From 43b8c16fccfc734433598b581b9a71acb7b916f1 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Thu, 14 Apr 2022 00:06:13 -0500 Subject: [PATCH] Compact-ify cards in portfolio page --- web/components/bets-list.tsx | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/web/components/bets-list.tsx b/web/components/bets-list.tsx index 19720bbe..19fed25d 100644 --- a/web/components/bets-list.tsx +++ b/web/components/bets-list.tsx @@ -130,7 +130,7 @@ export function BetsList(props: { user: User }) { ((currentBetsValue - currentInvested) / (currentInvested + 0.1)) * 100 return ( - + @@ -174,18 +174,20 @@ export function BetsList(props: { user: User }) { - {displayedContracts.length === 0 ? ( - - ) : ( - displayedContracts.map((contract) => ( - - )) - )} + + {displayedContracts.length === 0 ? ( + + ) : ( + displayedContracts.map((contract) => ( + + )) + )} + ) } @@ -223,7 +225,7 @@ function MyContractBets(props: {
setCollapsed((collapsed) => !collapsed)} @@ -243,7 +245,7 @@ function MyContractBets(props: { {/* Show carrot for collapsing. Hack the positioning. */}