Fix card width
This commit is contained in:
parent
3aa60640a3
commit
a395cd8405
|
@ -38,6 +38,7 @@ export function ContractCard(props: {
|
||||||
showHotVolume?: boolean
|
showHotVolume?: boolean
|
||||||
showTime?: ShowTime
|
showTime?: ShowTime
|
||||||
className?: string
|
className?: string
|
||||||
|
questionClass?: string
|
||||||
onClick?: () => void
|
onClick?: () => void
|
||||||
hideQuickBet?: boolean
|
hideQuickBet?: boolean
|
||||||
hideGroupLink?: boolean
|
hideGroupLink?: boolean
|
||||||
|
@ -46,6 +47,7 @@ export function ContractCard(props: {
|
||||||
showHotVolume,
|
showHotVolume,
|
||||||
showTime,
|
showTime,
|
||||||
className,
|
className,
|
||||||
|
questionClass,
|
||||||
onClick,
|
onClick,
|
||||||
hideQuickBet,
|
hideQuickBet,
|
||||||
hideGroupLink,
|
hideGroupLink,
|
||||||
|
@ -105,7 +107,7 @@ export function ContractCard(props: {
|
||||||
className={'hidden md:inline-flex'}
|
className={'hidden md:inline-flex'}
|
||||||
/>
|
/>
|
||||||
<p
|
<p
|
||||||
className="break-words font-semibold text-indigo-700 group-hover:underline group-hover:decoration-indigo-400 group-hover:decoration-2"
|
className={clsx("break-words font-semibold text-indigo-700 group-hover:underline group-hover:decoration-indigo-400 group-hover:decoration-2", questionClass)}
|
||||||
style={{ /* For iOS safari */ wordBreak: 'break-word' }}
|
style={{ /* For iOS safari */ wordBreak: 'break-word' }}
|
||||||
>
|
>
|
||||||
{question}
|
{question}
|
||||||
|
|
|
@ -167,7 +167,8 @@ function Section(props: {
|
||||||
contract={m}
|
contract={m}
|
||||||
showHotVolume
|
showHotVolume
|
||||||
hideGroupLink
|
hideGroupLink
|
||||||
className="shrink-0"
|
className="max-h-[148px] w-96 shrink-0"
|
||||||
|
questionClass="line-clamp-2"
|
||||||
/>
|
/>
|
||||||
))
|
))
|
||||||
) : (
|
) : (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user