From c2a10664be370541d1f9c8113ee90d67a6421ded Mon Sep 17 00:00:00 2001 From: Stanislav Lysak Date: Fri, 9 Aug 2024 18:16:55 +0300 Subject: [PATCH] ui updates --- .../ProfileEditor/Avatar/AvatarButton.tsx | 110 +++++++++--------- 1 file changed, 56 insertions(+), 54 deletions(-) diff --git a/src/components/@molecules/ProfileEditor/Avatar/AvatarButton.tsx b/src/components/@molecules/ProfileEditor/Avatar/AvatarButton.tsx index 9d71bf6ec..859078a97 100644 --- a/src/components/@molecules/ProfileEditor/Avatar/AvatarButton.tsx +++ b/src/components/@molecules/ProfileEditor/Avatar/AvatarButton.tsx @@ -12,6 +12,7 @@ const AvatarWrapper = styled.button<{ $error?: boolean; $validated?: boolean; $d position: relative; width: 120px; height: 120px; + min-width: 120px; border-radius: 50%; background-color: ${theme.colors.backgroundPrimary}; cursor: pointer; @@ -65,7 +66,8 @@ const ActionContainer = styled.div( display: flex; flex-direction: column; gap: ${theme.space[2]}; - max-width: 200px; + overflow: hidden; + /* max-width: 200px; */ `, ) @@ -128,62 +130,62 @@ const AvatarButton = ({ - - - {!!src && ( - - )} + + {!!src && ( + + )} + - - { - if (e.target.files?.[0]) { - onSelectOption?.('upload') - onAvatarFileChange?.(e.target.files[0]) - } - }} - /> - + { + if (e.target.files?.[0]) { + onSelectOption?.('upload') + onAvatarFileChange?.(e.target.files[0]) + } + }} + /> + + ) }