Use Avatar in leaderboard
Removes the extra ring
This commit is contained in:
parent
4c3119c9ec
commit
0223ecdac2
|
@ -1,5 +1,6 @@
|
||||||
import clsx from 'clsx'
|
import clsx from 'clsx'
|
||||||
import { User } from '../../common/user'
|
import { User } from '../../common/user'
|
||||||
|
import { Avatar } from './avatar'
|
||||||
import { Row } from './layout/row'
|
import { Row } from './layout/row'
|
||||||
import { SiteLink } from './site-link'
|
import { SiteLink } from './site-link'
|
||||||
import { Title } from './title'
|
import { Title } from './title'
|
||||||
|
@ -38,13 +39,7 @@ export function Leaderboard(props: {
|
||||||
<td>
|
<td>
|
||||||
<SiteLink className="relative" href={`/${user.username}`}>
|
<SiteLink className="relative" href={`/${user.username}`}>
|
||||||
<Row className="items-center gap-4">
|
<Row className="items-center gap-4">
|
||||||
<img
|
<Avatar avatarUrl={user.avatarUrl} size={8} />
|
||||||
className="rounded-full bg-gray-400 flex-shrink-0 ring-8 ring-gray-50"
|
|
||||||
src={user.avatarUrl || ''}
|
|
||||||
alt=""
|
|
||||||
width={32}
|
|
||||||
height={32}
|
|
||||||
/>
|
|
||||||
<div className="truncate">{user.name}</div>
|
<div className="truncate">{user.name}</div>
|
||||||
</Row>
|
</Row>
|
||||||
</SiteLink>
|
</SiteLink>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user