Truncate user link
This commit is contained in:
parent
1f3f800a57
commit
e9ee7e2355
|
@ -55,11 +55,7 @@ export function AbbrContractDetails(props: {
|
||||||
avatarUrl={contract.creatorAvatarUrl}
|
avatarUrl={contract.creatorAvatarUrl}
|
||||||
size={6}
|
size={6}
|
||||||
/>
|
/>
|
||||||
<UserLink
|
<UserLink name={creatorName} username={creatorUsername} />
|
||||||
className="whitespace-nowrap"
|
|
||||||
name={creatorName}
|
|
||||||
username={creatorUsername}
|
|
||||||
/>
|
|
||||||
</Row>
|
</Row>
|
||||||
|
|
||||||
<Row className="gap-3 text-gray-400">
|
<Row className="gap-3 text-gray-400">
|
||||||
|
|
|
@ -19,7 +19,6 @@ import { Comment, getUsersComments } from 'web/lib/firebase/comments'
|
||||||
import { Contract } from 'common/contract'
|
import { Contract } from 'common/contract'
|
||||||
import { getContractFromId, listContracts } from 'web/lib/firebase/contracts'
|
import { getContractFromId, listContracts } from 'web/lib/firebase/contracts'
|
||||||
import { LoadingIndicator } from './loading-indicator'
|
import { LoadingIndicator } from './loading-indicator'
|
||||||
import { useRouter } from 'next/router'
|
|
||||||
import _ from 'lodash'
|
import _ from 'lodash'
|
||||||
import { BetsList } from './bets-list'
|
import { BetsList } from './bets-list'
|
||||||
import { Bet } from 'common/bet'
|
import { Bet } from 'common/bet'
|
||||||
|
@ -34,7 +33,10 @@ export function UserLink(props: {
|
||||||
const { name, username, showUsername, className } = props
|
const { name, username, showUsername, className } = props
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<SiteLink href={`/${username}`} className={clsx('z-10', className)}>
|
<SiteLink
|
||||||
|
href={`/${username}`}
|
||||||
|
className={clsx('z-10 truncate', className)}
|
||||||
|
>
|
||||||
{name}
|
{name}
|
||||||
{showUsername && ` (@${username})`}
|
{showUsername && ` (@${username})`}
|
||||||
</SiteLink>
|
</SiteLink>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user