Embedded market: Make only top section a link
This commit is contained in:
parent
cc15eb2044
commit
7df69dda4d
|
@ -86,7 +86,8 @@ function ContractEmbed(props: { contract: Contract; bets: Bet[] }) {
|
||||||
const href = `https://${DOMAIN}${contractPath(contract)}`
|
const href = `https://${DOMAIN}${contractPath(contract)}`
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Col className="w-full flex-1 bg-white py-2 relative">
|
<Col className="w-full flex-1 bg-white py-2">
|
||||||
|
<Col className="relative">
|
||||||
<SiteLink
|
<SiteLink
|
||||||
className="absolute top-0 left-0 w-full h-full z-20"
|
className="absolute top-0 left-0 w-full h-full z-20"
|
||||||
href={href}
|
href={href}
|
||||||
|
@ -101,10 +102,13 @@ function ContractEmbed(props: { contract: Contract; bets: Bet[] }) {
|
||||||
<Row className="items-center justify-between gap-4 px-2">
|
<Row className="items-center justify-between gap-4 px-2">
|
||||||
<ContractDetails contract={contract} isCreator={false} hideTweetBtn />
|
<ContractDetails contract={contract} isCreator={false} hideTweetBtn />
|
||||||
|
|
||||||
{(isBinary || resolution) && <ResolutionOrChance contract={contract} />}
|
{(isBinary || resolution) && (
|
||||||
|
<ResolutionOrChance contract={contract} />
|
||||||
|
)}
|
||||||
</Row>
|
</Row>
|
||||||
|
|
||||||
<Spacer h={2} />
|
<Spacer h={2} />
|
||||||
|
</Col>
|
||||||
|
|
||||||
<div className="mx-1">
|
<div className="mx-1">
|
||||||
{isBinary ? (
|
{isBinary ? (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user