simplify avatar and fix border

This commit is contained in:
Pavel Prichodko 2023-01-23 15:55:16 +01:00
parent 295efa4fb7
commit 8d157119ca
No known key found for this signature in database
GPG Key ID: 8E4C82D464215E83
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}
width="full"
radius="full"
aspectRatio={1}
onLoad={() => setStatus('loaded')}
onError={() => setStatus('error')}
radius="full"
/>
</Stack>
{status === 'error' && (
<Fallback