From c720a4446be05b9638d367365247ffed0e63e35b Mon Sep 17 00:00:00 2001 From: Stanislav Lysak Date: Fri, 9 Aug 2024 18:54:18 +0300 Subject: [PATCH] ui updates --- .../ProfileEditor/Avatar/AvatarButton.tsx | 109 +++++++++--------- 1 file changed, 55 insertions(+), 54 deletions(-) diff --git a/src/components/@molecules/ProfileEditor/Avatar/AvatarButton.tsx b/src/components/@molecules/ProfileEditor/Avatar/AvatarButton.tsx index 9d71bf6ec..c2c3eb271 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,7 @@ const ActionContainer = styled.div( display: flex; flex-direction: column; gap: ${theme.space[2]}; - max-width: 200px; + overflow: hidden; `, ) @@ -128,62 +129,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]) + } + }} + /> + + ) }