tangled
alpha
login
or
join now
grain.social
/
grain
38
fork
atom
grain.social is a photo sharing platform built on atproto.
38
fork
atom
overview
issues
2
pulls
pipelines
allow empty avatar size for the avatar dialog
chadtmiller.com
9 months ago
e99a1a1c
b8ec068a
+2
-2
1 changed file
expand all
collapse all
unified
split
src
components
ActorAvatar.tsx
+2
-2
src/components/ActorAvatar.tsx
···
5
5
6
6
export function ActorAvatar({
7
7
profile,
8
8
-
size = 28,
8
8
+
size,
9
9
class: classProp,
10
10
}: Readonly<
11
11
{ profile: Un$Typed<ProfileView>; size?: number; class?: string }
···
18
18
alt={profile.handle}
19
19
title={profile.handle}
20
20
class={cn("rounded-full object-cover", classProp)}
21
21
-
style={{ width: size, height: size }}
21
21
+
style={size ? { width: size, height: size } : undefined}
22
22
/>
23
23
)
24
24
: <DefaultAvatar size={size} class={classProp} />