From c70ec1dad3535bc7d2b04ccf4bb153dc6fd1dacd Mon Sep 17 00:00:00 2001 From: jahooma Date: Fri, 14 Jan 2022 12:28:45 -0600 Subject: [PATCH] Remove 3 unnecessary DOM elements from card --- web/components/contract-card.tsx | 37 ++++++++++++++++---------------- web/pages/index.tsx | 4 ++-- 2 files changed, 20 insertions(+), 21 deletions(-) diff --git a/web/components/contract-card.tsx b/web/components/contract-card.tsx index dd3a0fbe..99605e00 100644 --- a/web/components/contract-card.tsx +++ b/web/components/contract-card.tsx @@ -25,25 +25,24 @@ export function ContractCard(props: { return ( - -
  • -
    -
    - -

    {question}

    - -
    - -
    -
    -
  • +
    + +

    {question}

    + +
    +
    ) diff --git a/web/pages/index.tsx b/web/pages/index.tsx index 11ec9450..2c8d0ba8 100644 --- a/web/pages/index.tsx +++ b/web/pages/index.tsx @@ -55,11 +55,11 @@ const HotMarkets = (props: { hotContracts: Contract[] }) => {
    <Col className="gap-6"> - <Col className="md:flex-row gap-6"> + <Col className="md:flex-row items-start gap-6"> <ContractCard className="flex-1" contract={c1} showHotVolume /> <ContractCard className="flex-1" contract={c2} showHotVolume /> </Col> - <Col className="md:flex-row gap-6"> + <Col className="md:flex-row items-start gap-6"> <ContractCard className="flex-1" contract={c3} showHotVolume /> <ContractCard className="flex-1" contract={c4} showHotVolume /> </Col>