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 6 export function ActorAvatar({ 7 profile, 8 - size = 28, 9 class: classProp, 10 }: Readonly< 11 { profile: Un$Typed<ProfileView>; size?: number; class?: string } ··· 18 alt={profile.handle} 19 title={profile.handle} 20 class={cn("rounded-full object-cover", classProp)} 21 - style={{ width: size, height: size }} 22 /> 23 ) 24 : <DefaultAvatar size={size} class={classProp} />
··· 5 6 export function ActorAvatar({ 7 profile, 8 + size, 9 class: classProp, 10 }: Readonly< 11 { profile: Un$Typed<ProfileView>; size?: number; class?: string } ··· 18 alt={profile.handle} 19 title={profile.handle} 20 class={cn("rounded-full object-cover", classProp)} 21 + style={size ? { width: size, height: size } : undefined} 22 /> 23 ) 24 : <DefaultAvatar size={size} class={classProp} />