Right align tweet button
This commit is contained in:
parent
95b28bd536
commit
477878a09f
|
@ -54,15 +54,18 @@ export const ContractOverview = (props: {
|
|||
/>
|
||||
|
||||
<ContractDetails contract={contract} />
|
||||
<TweetButton tweetText={tweetText} />
|
||||
<TweetButton className="self-end md:hidden" tweetText={tweetText} />
|
||||
</Col>
|
||||
|
||||
<ResolutionOrChance
|
||||
className="hidden md:flex md:items-end"
|
||||
resolution={resolution}
|
||||
probPercent={probPercent}
|
||||
large
|
||||
/>
|
||||
<Col className="hidden md:flex justify-between items-end">
|
||||
<ResolutionOrChance
|
||||
className="items-end"
|
||||
resolution={resolution}
|
||||
probPercent={probPercent}
|
||||
large
|
||||
/>
|
||||
<TweetButton className="mt-6" tweetText={tweetText} />
|
||||
</Col>
|
||||
</Row>
|
||||
|
||||
<Spacer h={4} />
|
||||
|
|
|
@ -5,11 +5,8 @@ export function TweetButton(props: { className?: string; tweetText?: string }) {
|
|||
|
||||
return (
|
||||
<a
|
||||
className={clsx(
|
||||
'btn btn-xs normal-case self-start border-none',
|
||||
className
|
||||
)}
|
||||
style={{ backgroundColor: '#1da1f2' }}
|
||||
className={clsx('btn btn-xs normal-case border-none', className)}
|
||||
style={{ backgroundColor: '#1da1f2', width: 75 }}
|
||||
href={`https://twitter.com/intent/tweet?text=${encodeURIComponent(
|
||||
tweetText ?? ''
|
||||
)}`}
|
||||
|
|
Loading…
Reference in New Issue
Block a user