From 571ae8bcd6e1f85e962f0de5b1ea1fc380441c4a Mon Sep 17 00:00:00 2001 From: Marshall Polaris Date: Fri, 12 Aug 2022 16:57:14 -0700 Subject: [PATCH] Fix a bunch of weird CSS stuff --- web/components/contract/contract-card.tsx | 71 ++++++++++------------- web/components/contract/quick-bet.tsx | 2 +- 2 files changed, 33 insertions(+), 40 deletions(-) diff --git a/web/components/contract/contract-card.tsx b/web/components/contract/contract-card.tsx index a88cc86e..b4f20a40 100644 --- a/web/components/contract/contract-card.tsx +++ b/web/components/contract/contract-card.tsx @@ -68,48 +68,41 @@ export function ContractCard(props: { return ( - -
- {onClick ? ( - { - // Let the browser handle the link click (opens in new tab). - if (e.ctrlKey || e.metaKey) return + + {onClick ? ( + { + // Let the browser handle the link click (opens in new tab). + if (e.ctrlKey || e.metaKey) return - e.preventDefault() - track('click market card', { - slug: contract.slug, - contractId: contract.id, - }) - onClick() - }} + e.preventDefault() + track('click market card', { + slug: contract.slug, + contractId: contract.id, + }) + onClick() + }} + /> + ) : ( + + - ) : ( - - - - )} -
+ + )}

{question} @@ -140,21 +133,21 @@ export function ContractCard(props: { <> {outcomeType === 'BINARY' && ( )} {outcomeType === 'PSEUDO_NUMERIC' && ( )} {outcomeType === 'NUMERIC' && ( )} @@ -162,7 +155,7 @@ export function ContractCard(props: { {(outcomeType === 'FREE_RESPONSE' || outcomeType === 'MULTIPLE_CHOICE') && ( diff --git a/web/components/contract/quick-bet.tsx b/web/components/contract/quick-bet.tsx index 482aea47..92cee018 100644 --- a/web/components/contract/quick-bet.tsx +++ b/web/components/contract/quick-bet.tsx @@ -138,7 +138,7 @@ export function QuickBet(props: { return (