From ad2f080c6e08e6c853eb15e82cea51bb60ee107b Mon Sep 17 00:00:00 2001 From: jahooma Date: Thu, 16 Dec 2021 15:51:47 -0600 Subject: [PATCH] Improve layout of bets card --- web/components/bets-list.tsx | 49 ++++++++++++++++++++---------------- 1 file changed, 28 insertions(+), 21 deletions(-) diff --git a/web/components/bets-list.tsx b/web/components/bets-list.tsx index 17ca6344..83f619a4 100644 --- a/web/components/bets-list.tsx +++ b/web/components/bets-list.tsx @@ -100,7 +100,7 @@ function MyContractBets(props: { contract: Contract; bets: Bet[] }) { )} onClick={() => setCollapsed((collapsed) => !collapsed)} > - +
@@ -120,7 +120,7 @@ function MyContractBets(props: { contract: Contract; bets: Bet[] }) { {resolution && ( <>
-
+
Resolved
@@ -128,20 +128,25 @@ function MyContractBets(props: { contract: Contract; bets: Bet[] }) { - + + - {/* Show carrot for collapsing. Hack the positioning. */} -
+ {/* Show carrot for collapsing. Hack the positioning. */} +
+ -
+
@@ -172,31 +177,33 @@ export function MyBetsSummary(props: { ) return ( - + -
Total bets
-
{formatMoney(betsTotal)}
+
+ Total bets +
+
{formatMoney(betsTotal)}
{resolution ? ( <>
Winnings
-
{formatMoney(betsPayout)}
+
{formatMoney(betsPayout)}
) : ( <> -
+
Payout if
-
{formatMoney(yesWinnings)}
+
{formatMoney(yesWinnings)}
-
+
Payout if
-
{formatMoney(noWinnings)}
+
{formatMoney(noWinnings)}
)}