simplify avatar and fix border

This commit is contained in:
Pavel Prichodko 2023-01-23 15:55:16 +01:00
parent 447670bc92
commit becd8ba71b
No known key found for this signature in database
GPG Key ID: 0EB8D75C775AB6F1
1 changed files with 9 additions and 10 deletions

View File

@ -172,16 +172,15 @@ const Avatar = (props: Props) => {
<Indicator size={size} state={indicator} /> <Indicator size={size} state={indicator} />
</Unspaced> </Unspaced>
)} )}
<Stack borderRadius={28} overflow="hidden">
<Image <Image
src={src} src={src}
width={size} width="full"
height={size} radius="full"
onLoad={() => setStatus('loaded')} aspectRatio={1}
onError={() => setStatus('error')} onLoad={() => setStatus('loaded')}
radius="full" onError={() => setStatus('error')}
/> />
</Stack>
{status === 'error' && ( {status === 'error' && (
<Fallback <Fallback