grain.social is a photo sharing platform built on atproto.

allow empty avatar size for the avatar dialog

+2 -2
+2 -2
src/components/ActorAvatar.tsx
··· 5 5 6 6 export function ActorAvatar({ 7 7 profile, 8 - size = 28, 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 - style={{ width: size, height: size }} 21 + style={size ? { width: size, height: size } : undefined} 22 22 /> 23 23 ) 24 24 : <DefaultAvatar size={size} class={classProp} />