diff --git a/src/components/@molecules/ProfileEditor/Avatar/AvatarButton.tsx b/src/components/@molecules/ProfileEditor/Avatar/AvatarButton.tsx index c2c3eb271..6842587d9 100644 --- a/src/components/@molecules/ProfileEditor/Avatar/AvatarButton.tsx +++ b/src/components/@molecules/ProfileEditor/Avatar/AvatarButton.tsx @@ -5,14 +5,9 @@ import styled, { css } from 'styled-components' import { Avatar, Button, Dropdown } from '@ensdomains/thorin' import { DropdownItem } from '@ensdomains/thorin/dist/types/components/molecules/Dropdown/Dropdown' -import { LegacyDropdown } from '@app/components/@molecules/LegacyDropdown/LegacyDropdown' - const AvatarWrapper = styled.button<{ $error?: boolean; $validated?: boolean; $dirty?: boolean }>( ({ theme, $validated, $dirty, $error }) => css` position: relative; - width: 120px; - height: 120px; - min-width: 120px; border-radius: 50%; background-color: ${theme.colors.backgroundPrimary}; cursor: pointer; @@ -65,6 +60,7 @@ const ActionContainer = styled.div( ({ theme }) => css` display: flex; flex-direction: column; + align-items: flex-start; gap: ${theme.space[2]}; overflow: hidden; `, @@ -72,8 +68,8 @@ const ActionContainer = styled.div( const Container = styled.div( ({ theme }) => css` - width: 100%; - display: flex; + display: grid; + grid-template-columns: 120px 1fr; align-items: center; gap: ${theme.space[4]}; `, @@ -129,48 +125,51 @@ const AvatarButton = ({ - - {!!src && ( - - {src} - - )} - - - {t('input.profileEditor.tabs.avatar.change')} - + + + + {!!src && ( + + {src} + + )} + + + {t('input.profileEditor.tabs.avatar.change')} + + - - + + ) }