From e18e7548d5c65493ec3a4c2e1ab4658e8a096740 Mon Sep 17 00:00:00 2001 From: jahooma Date: Fri, 10 Dec 2021 12:52:11 -0600 Subject: [PATCH] Better layout on mobile for contract page --- web/components/bet-panel.tsx | 2 +- web/components/contract-overview.tsx | 8 ++++---- web/pages/contract/[contractId].tsx | 8 +++++--- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/web/components/bet-panel.tsx b/web/components/bet-panel.tsx index 8a403077..be9dcdca 100644 --- a/web/components/bet-panel.tsx +++ b/web/components/bet-panel.tsx @@ -57,7 +57,7 @@ export function BetPanel(props: { contract: Contract; className?: string }) { const betDisabled = isSubmitting || wasSubmitted return ( - +
Pick outcome
{
{contract.question}
- -
By {contract.creatorName}
+ +
By {contract.creatorName}
-
Dec 9
+
Dec 9
-
200,000 volume
+
200,000 volume
diff --git a/web/pages/contract/[contractId].tsx b/web/pages/contract/[contractId].tsx index 610b9959..bcde85fa 100644 --- a/web/pages/contract/[contractId].tsx +++ b/web/pages/contract/[contractId].tsx @@ -2,9 +2,9 @@ import React from 'react' import { useRouter } from 'next/router' import { useContract } from '../../hooks/use-contract' import { Header } from '../../components/header' -import { Row } from '../../components/layout/row' import { ContractOverview } from '../../components/contract-overview' import { BetPanel } from '../../components/bet-panel' +import { Col } from '../../components/layout/col' export default function ContractPage() { const router = useRouter() @@ -25,11 +25,13 @@ export default function ContractPage() {
- + +
+ - +
)