Larger font on amount input
This commit is contained in:
parent
bec8cdb3e8
commit
6232284e92
|
@ -45,7 +45,7 @@ export function AmountInput(props: {
|
|||
<span className="bg-gray-200 text-sm">{label}</span>
|
||||
<input
|
||||
className={clsx(
|
||||
'input input-bordered',
|
||||
'input input-bordered max-w-[200px] text-lg',
|
||||
error && 'input-error',
|
||||
inputClassName
|
||||
)}
|
||||
|
|
|
@ -116,7 +116,7 @@ export function AnswerBetPanel(props: {
|
|||
</Row>
|
||||
<div className="my-3 text-left text-sm text-gray-500">Amount </div>
|
||||
<BuyAmountInput
|
||||
inputClassName="w-full"
|
||||
inputClassName="w-full max-w-none"
|
||||
amount={betAmount}
|
||||
onChange={setBetAmount}
|
||||
error={error}
|
||||
|
|
|
@ -62,7 +62,7 @@ export function BetPanel(props: {
|
|||
className
|
||||
)}
|
||||
>
|
||||
<div className="mb-6 text-2xl text-gray-700">Place a trade</div>
|
||||
<div className="mb-6 text-2xl">Place your bet</div>
|
||||
{/* <Title className={clsx('!mt-0 text-neutral')} text="Place a trade" /> */}
|
||||
|
||||
<BuyPanel contract={contract} user={user} userBets={userBets ?? []} />
|
||||
|
@ -125,19 +125,23 @@ export function BetPanelSwitcher(props: {
|
|||
<BinaryOutcomeLabel outcome={sharesOutcome} /> shares
|
||||
</div>
|
||||
|
||||
<button
|
||||
className="btn btn-sm"
|
||||
style={{
|
||||
backgroundColor: 'white',
|
||||
border: '2px solid',
|
||||
color: '#3D4451',
|
||||
}}
|
||||
onClick={() =>
|
||||
tradeType === 'BUY' ? setTradeType('SELL') : setTradeType('BUY')
|
||||
}
|
||||
>
|
||||
{tradeType === 'BUY' ? 'Sell' : 'Bet'}
|
||||
</button>
|
||||
{tradeType === 'BUY' && (
|
||||
<button
|
||||
className="btn btn-sm"
|
||||
style={{
|
||||
backgroundColor: 'white',
|
||||
border: '2px solid',
|
||||
color: '#3D4451',
|
||||
}}
|
||||
onClick={() =>
|
||||
tradeType === 'BUY'
|
||||
? setTradeType('SELL')
|
||||
: setTradeType('BUY')
|
||||
}
|
||||
>
|
||||
{tradeType === 'BUY' ? 'Sell' : 'Bet'}
|
||||
</button>
|
||||
)}
|
||||
</Row>
|
||||
</Col>
|
||||
)}
|
||||
|
@ -299,7 +303,7 @@ function BuyPanel(props: {
|
|||
/>
|
||||
<div className="my-3 text-left text-sm text-gray-500">Amount</div>
|
||||
<BuyAmountInput
|
||||
inputClassName="w-full"
|
||||
inputClassName="w-full max-w-none"
|
||||
amount={betAmount}
|
||||
onChange={onBetChange}
|
||||
error={error}
|
||||
|
|
|
@ -72,9 +72,9 @@ export function ResolutionPanel(props: {
|
|||
|
||||
return (
|
||||
<Col className={clsx('rounded-md bg-white px-8 py-6', className)}>
|
||||
<Title className="!mt-0 whitespace-nowrap" text="Resolve market" />
|
||||
<div className="mb-6 whitespace-nowrap text-2xl">Resolve market</div>
|
||||
|
||||
<div className="mb-2 text-sm text-gray-500">Outcome</div>
|
||||
<div className="mb-3 text-sm text-gray-500">Outcome</div>
|
||||
|
||||
<YesNoCancelSelector
|
||||
className="mx-auto my-2"
|
||||
|
|
|
@ -207,7 +207,7 @@ function DonationBox(props: {
|
|||
Amount
|
||||
</label>
|
||||
<BuyAmountInput
|
||||
inputClassName="w-full donate-input"
|
||||
inputClassName="w-full max-w-none donate-input"
|
||||
amount={amount}
|
||||
onChange={setAmount}
|
||||
error={error}
|
||||
|
|
Loading…
Reference in New Issue
Block a user