This commit is contained in:
ingawei 2022-10-03 13:49:21 -07:00
parent b9108d6b82
commit 99c04e3dfd
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ import { track } from 'web/lib/service/analytics'
export function embedContractCode(contract: Contract) {
const title = contract.question
const src = `https://${DOMAIN}/embed${contractPath(contract)}`
return `<iframe src="${src}" title="${title}" frameborder="0"></iframe>`
return `<iframe src="${src}" title="${title}"></iframe>`
}
export function embedContractGridCode(contracts: Contract[]) {

View File

@ -105,7 +105,7 @@ export function ContractEmbed(props: { contract: Contract; bets: Bet[] }) {
{question}
</SiteLink>
<Row>
<div className="mx-1 mb-2 min-h-0 flex-1" ref={setElem}>
<div className="min-h-150 mx-1 mb-2 h-full flex-1" ref={setElem}>
<ContractChart contract={contract} bets={bets} height={150} />
</div>
<QuickBet