Right align tweet button

This commit is contained in:
jahooma 2022-01-05 23:02:36 -06:00
parent 95b28bd536
commit 477878a09f
2 changed files with 12 additions and 12 deletions

View File

@ -54,15 +54,18 @@ export const ContractOverview = (props: {
/> />
<ContractDetails contract={contract} /> <ContractDetails contract={contract} />
<TweetButton tweetText={tweetText} /> <TweetButton className="self-end md:hidden" tweetText={tweetText} />
</Col> </Col>
<ResolutionOrChance <Col className="hidden md:flex justify-between items-end">
className="hidden md:flex md:items-end" <ResolutionOrChance
resolution={resolution} className="items-end"
probPercent={probPercent} resolution={resolution}
large probPercent={probPercent}
/> large
/>
<TweetButton className="mt-6" tweetText={tweetText} />
</Col>
</Row> </Row>
<Spacer h={4} /> <Spacer h={4} />

View File

@ -5,11 +5,8 @@ export function TweetButton(props: { className?: string; tweetText?: string }) {
return ( return (
<a <a
className={clsx( className={clsx('btn btn-xs normal-case border-none', className)}
'btn btn-xs normal-case self-start border-none', style={{ backgroundColor: '#1da1f2', width: 75 }}
className
)}
style={{ backgroundColor: '#1da1f2' }}
href={`https://twitter.com/intent/tweet?text=${encodeURIComponent( href={`https://twitter.com/intent/tweet?text=${encodeURIComponent(
tweetText ?? '' tweetText ?? ''
)}`} )}`}