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