From ad76bbabee8127b0f15418828b8c6687e8d33859 Mon Sep 17 00:00:00 2001 From: Pavel Prichodko <14926950+prichodko@users.noreply.github.com> Date: Mon, 23 Jan 2023 14:46:04 +0100 Subject: [PATCH] remove overflow hidden from avatar --- packages/components/src/avatar/avatar.tsx | 52 ++++++++++++----------- 1 file changed, 28 insertions(+), 24 deletions(-) diff --git a/packages/components/src/avatar/avatar.tsx b/packages/components/src/avatar/avatar.tsx index b1f0600a..2d193e8e 100644 --- a/packages/components/src/avatar/avatar.tsx +++ b/packages/components/src/avatar/avatar.tsx @@ -17,7 +17,6 @@ const Base = styled(Stack, { display: 'inline-flex', position: 'relative', - overflow: 'hidden', backgroundColor: '$white-100', justifyContent: 'center', alignItems: 'center', @@ -75,46 +74,51 @@ const Indicator = styled(Stack, { name: 'Indicator', position: 'absolute', - width: 8, - height: 8, - bottom: 0, - right: 0, + bottom: 2, + right: 2, zIndex: 2, - // borderWidth: 2, - // borderColor: 'rgba(255,255,0,1.0)', + + borderWidth: '2px', + borderColor: '$white-100', variants: { size: { 80: { - width: 10, - height: 10, + width: 12, + height: 12, borderRadius: '50%', }, 56: { - width: 10, - height: 10, - borderRadius: '50%', + width: 12, + height: 12, + borderRadius: 12 / 2, }, // FIXME: use catch all variant 52: { - width: 8, - height: 8, - borderRadius: 8 / 2, + width: 12, + height: 12, + borderRadius: 12 / 2, }, 48: { - width: 8, - height: 8, - borderRadius: 8 / 2, + width: 10, + height: 10, + borderRadius: 10 / 2, + right: 0, + bottom: 0, }, 32: { - width: 8, - height: 8, - borderRadius: 8 / 2, + width: 10, + height: 10, + borderRadius: 10 / 2, + right: 0, + bottom: 0, }, 20: { - width: 8, - height: 8, - borderRadius: 8 / 2, + width: 10, + height: 10, + borderRadius: 10 / 2, + right: 0, + bottom: 0, }, },