diff --git a/components/auth/AccountModal/index.module.scss b/components/auth/AccountModal/index.module.scss index e2bbd2e0..73474fa6 100644 --- a/components/auth/AccountModal/index.module.scss +++ b/components/auth/AccountModal/index.module.scss @@ -1,9 +1,12 @@ -.Account.DialogContent { +.fields { display: flex; flex-direction: column; gap: $unit-2x; - width: $unit * 64; - overflow-y: hidden; + padding: 0 $unit-4x; + + @include breakpoint(phone) { + gap: $unit-4x; + } .DialogDescription { font-size: $font-regular; diff --git a/components/auth/AccountModal/index.tsx b/components/auth/AccountModal/index.tsx index 9fc38fc5..73ccb9c5 100644 --- a/components/auth/AccountModal/index.tsx +++ b/components/auth/AccountModal/index.tsx @@ -4,12 +4,9 @@ import { useRouter } from 'next/router' import { useTranslation } from 'next-i18next' import { useTheme } from 'next-themes' -import { - Dialog, - DialogClose, - DialogTitle, - DialogTrigger, -} from '~components/common/Dialog' +import { Dialog } from '~components/common/Dialog' +import DialogHeader from '~components/common/DialogHeader' +import DialogFooter from '~components/common/DialogFooter' import DialogContent from '~components/common/DialogContent' import Button from '~components/common/Button' import SelectItem from '~components/common/SelectItem' @@ -197,17 +194,20 @@ const AccountModal = React.forwardRef( .sort((a, b) => (a.name.en > b.name.en ? 1 : -1)) .map((item, i) => { return ( - {item.name[locale]} - + ) }) @@ -215,15 +215,17 @@ const AccountModal = React.forwardRef( i.filename === picture)?.element, + src: [`/profile/${picture}.png`, `/profile/${picture}@2x.png 2x`], + alt: pictureData.find((i) => i.filename === picture)?.name[locale], + }} open={pictureOpen} onOpenChange={() => openSelect('picture')} onChange={handlePictureChange} onClose={() => setPictureOpen(false)} - imageAlt={t('modals.settings.labels.image_alt')} - imageClass={pictureData.find((i) => i.filename === picture)?.element} - imageSrc={[`/profile/${picture}.png`, `/profile/${picture}@2x.png 2x`]} value={picture} > {pictureOptions} @@ -308,36 +310,29 @@ const AccountModal = React.forwardRef( onOpenAutoFocus={(event: Event) => {}} onEscapeKeyDown={onEscapeKeyDown} > -
-
- - {t('modals.settings.title')} - - @{username} -
- - - - - -
+
-
+
{pictureField()} {genderField()} {languageField()} {themeField()}
-
-
-
+ + -
-
+ />, + ]} + />