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} />
</Unspaced>
)}
<Stack borderRadius={28} overflow="hidden">
<Image
src={src}
width={size}
height={size}
onLoad={() => setStatus('loaded')}
onError={() => setStatus('error')}
radius="full"
/>
</Stack>
<Image
src={src}
width="full"
radius="full"
aspectRatio={1}
onLoad={() => setStatus('loaded')}
onError={() => setStatus('error')}
/>
{status === 'error' && (
<Fallback