Fix wrapping close date and truncate group name
This commit is contained in:
parent
59565416b6
commit
a00857cb45
|
@ -122,19 +122,6 @@ export function ContractCard(props: {
|
||||||
) : (
|
) : (
|
||||||
<FreeResponseTopAnswer contract={contract} truncate="long" />
|
<FreeResponseTopAnswer contract={contract} truncate="long" />
|
||||||
))}
|
))}
|
||||||
<Row className={'absolute bottom-3 gap-2 md:gap-0'}>
|
|
||||||
<AvatarDetails
|
|
||||||
contract={contract}
|
|
||||||
short={true}
|
|
||||||
className={'block md:hidden'}
|
|
||||||
/>
|
|
||||||
<MiscDetails
|
|
||||||
contract={contract}
|
|
||||||
showHotVolume={showHotVolume}
|
|
||||||
showTime={showTime}
|
|
||||||
hideGroupLink={hideGroupLink}
|
|
||||||
/>
|
|
||||||
</Row>
|
|
||||||
</Col>
|
</Col>
|
||||||
{showQuickBet ? (
|
{showQuickBet ? (
|
||||||
<QuickBet contract={contract} user={user} />
|
<QuickBet contract={contract} user={user} />
|
||||||
|
@ -172,6 +159,24 @@ export function ContractCard(props: {
|
||||||
<ProbBar contract={contract} />
|
<ProbBar contract={contract} />
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
<Row
|
||||||
|
className={clsx(
|
||||||
|
'absolute bottom-3 gap-2 truncate px-5 md:gap-0',
|
||||||
|
showQuickBet ? 'w-[85%]' : 'w-full'
|
||||||
|
)}
|
||||||
|
>
|
||||||
|
<AvatarDetails
|
||||||
|
contract={contract}
|
||||||
|
short={true}
|
||||||
|
className={'block md:hidden'}
|
||||||
|
/>
|
||||||
|
<MiscDetails
|
||||||
|
contract={contract}
|
||||||
|
showHotVolume={showHotVolume}
|
||||||
|
showTime={showTime}
|
||||||
|
hideGroupLink={hideGroupLink}
|
||||||
|
/>
|
||||||
|
</Row>
|
||||||
</Row>
|
</Row>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -58,13 +58,13 @@ export function MiscDetails(props: {
|
||||||
const isNew = createdTime > Date.now() - DAY_MS && !isResolved
|
const isNew = createdTime > Date.now() - DAY_MS && !isResolved
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Row className="items-center gap-3 text-sm text-gray-400">
|
<Row className="items-center gap-3 truncate text-sm text-gray-400">
|
||||||
{showHotVolume ? (
|
{showHotVolume ? (
|
||||||
<Row className="gap-0.5">
|
<Row className="gap-0.5">
|
||||||
<TrendingUpIcon className="h-5 w-5" /> {formatMoney(volume24Hours)}
|
<TrendingUpIcon className="h-5 w-5" /> {formatMoney(volume24Hours)}
|
||||||
</Row>
|
</Row>
|
||||||
) : showTime === 'close-date' ? (
|
) : showTime === 'close-date' ? (
|
||||||
<Row className="gap-0.5">
|
<Row className="gap-0.5 whitespace-nowrap">
|
||||||
<ClockIcon className="h-5 w-5" />
|
<ClockIcon className="h-5 w-5" />
|
||||||
{(closeTime || 0) < Date.now() ? 'Closed' : 'Closes'}{' '}
|
{(closeTime || 0) < Date.now() ? 'Closed' : 'Closes'}{' '}
|
||||||
{fromNow(closeTime || 0)}
|
{fromNow(closeTime || 0)}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user