diff --git a/web/components/avatar.tsx b/web/components/avatar.tsx index b487de6d..5f9aa074 100644 --- a/web/components/avatar.tsx +++ b/web/components/avatar.tsx @@ -7,8 +7,9 @@ export function Avatar(props: { avatarUrl?: string noLink?: boolean size?: number + className?: string }) { - const { username, avatarUrl, noLink, size } = props + const { username, avatarUrl, noLink, size, className } = props const s = size || 10 const onClick = @@ -25,7 +26,8 @@ export function Avatar(props: { className={clsx( 'flex items-center justify-center rounded-full object-cover', `w-${s} h-${s}`, - !noLink && 'cursor-pointer' + !noLink && 'cursor-pointer', + className )} src={avatarUrl} onClick={onClick} diff --git a/web/components/user-page.tsx b/web/components/user-page.tsx index 5dda5630..f0c9e70d 100644 --- a/web/components/user-page.tsx +++ b/web/components/user-page.tsx @@ -55,8 +55,12 @@ export function UserPage(props: { user: User; currentUser?: User }) { }} />