Clean up some bet panel markup and CSS (#231)
* Tidy up probability change markup * Tidy up payout markup
This commit is contained in:
parent
c9f3644988
commit
ee91a94466
|
@ -321,11 +321,11 @@ function BuyPanel(props: {
|
||||||
<Col className="mt-3 w-full gap-3">
|
<Col className="mt-3 w-full gap-3">
|
||||||
<Row className="items-center justify-between text-sm">
|
<Row className="items-center justify-between text-sm">
|
||||||
<div className="text-gray-500">Probability</div>
|
<div className="text-gray-500">Probability</div>
|
||||||
<Row>
|
<div>
|
||||||
<div>{formatPercent(initialProb)}</div>
|
{formatPercent(initialProb)}
|
||||||
<div className="mx-2">→</div>
|
<span className="mx-2">→</span>
|
||||||
<div>{formatPercent(resultProb)}</div>
|
{formatPercent(resultProb)}
|
||||||
</Row>
|
</div>
|
||||||
</Row>
|
</Row>
|
||||||
|
|
||||||
<Row className="items-center justify-between gap-2 text-sm">
|
<Row className="items-center justify-between gap-2 text-sm">
|
||||||
|
@ -350,12 +350,12 @@ function BuyPanel(props: {
|
||||||
|
|
||||||
{dpmTooltip && <InfoTooltip text={dpmTooltip} />}
|
{dpmTooltip && <InfoTooltip text={dpmTooltip} />}
|
||||||
</Row>
|
</Row>
|
||||||
<Row className="flex-wrap items-end justify-end gap-2">
|
<div>
|
||||||
<span className="whitespace-nowrap">
|
<span className="mr-2 whitespace-nowrap">
|
||||||
{formatMoney(currentPayout)}
|
{formatMoney(currentPayout)}
|
||||||
</span>
|
</span>
|
||||||
<span>(+{currentReturnPercent})</span>
|
(+{currentReturnPercent})
|
||||||
</Row>
|
</div>
|
||||||
</Row>
|
</Row>
|
||||||
</Col>
|
</Col>
|
||||||
|
|
||||||
|
@ -459,11 +459,11 @@ export function SellPanel(props: {
|
||||||
<Col className="mt-3 w-full gap-3">
|
<Col className="mt-3 w-full gap-3">
|
||||||
<Row className="items-center justify-between text-sm">
|
<Row className="items-center justify-between text-sm">
|
||||||
<div className="text-gray-500">Probability</div>
|
<div className="text-gray-500">Probability</div>
|
||||||
<Row>
|
<div>
|
||||||
<div>{formatPercent(initialProb)}</div>
|
{formatPercent(initialProb)}
|
||||||
<div className="mx-2">→</div>
|
<span className="mx-2">→</span>
|
||||||
<div>{formatPercent(resultProb)}</div>
|
{formatPercent(resultProb)}
|
||||||
</Row>
|
</div>
|
||||||
</Row>
|
</Row>
|
||||||
</Col>
|
</Col>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user