From 174c72ddf37729628c8535e0fb41523cb2f63901 Mon Sep 17 00:00:00 2001 From: Amir Moghani Date: Sat, 13 Jun 2026 22:18:27 +0330 Subject: [PATCH] fix(auth): adjust layout for responsive design in authentication steps --- .../components/AccountCreated/AccountCreated.tsx | 2 +- .../authentication/components/AuthenticationCard.tsx | 5 +---- .../AuthenticationSteps/EnterPasswordForm.tsx | 8 ++++---- .../components/AuthenticationSteps/OtpVerifyForm.tsx | 10 +++++++--- .../AuthenticationSteps/VerifyPhoneNumber.tsx | 12 +++++++++--- 5 files changed, 22 insertions(+), 15 deletions(-) diff --git a/src/features/authentication/components/AccountCreated/AccountCreated.tsx b/src/features/authentication/components/AccountCreated/AccountCreated.tsx index bee3d4d..632bbf7 100644 --- a/src/features/authentication/components/AccountCreated/AccountCreated.tsx +++ b/src/features/authentication/components/AccountCreated/AccountCreated.tsx @@ -36,7 +36,7 @@ export const AccountCreated = () => { }; return ( - + diff --git a/src/features/authentication/components/AuthenticationCard.tsx b/src/features/authentication/components/AuthenticationCard.tsx index c9c060c..b305352 100644 --- a/src/features/authentication/components/AuthenticationCard.tsx +++ b/src/features/authentication/components/AuthenticationCard.tsx @@ -2,13 +2,11 @@ import { Paper, type SxProps, type Theme } from '@mui/material'; import { type PropsWithChildren } from 'react'; export interface AuthenticationCardProps extends PropsWithChildren { - maxWidth?: string; sx?: SxProps; } export const AuthenticationCard = ({ children, - maxWidth, sx, }: AuthenticationCardProps) => { return ( @@ -22,8 +20,7 @@ export const AuthenticationCard = ({ }, mx: 2, boxSizing: 'border-box', - width: (t) => `calc(100% - ${t.spacing(2)})`, - maxWidth: maxWidth ?? '552px', + maxWidth: 636, ...sx, }} diff --git a/src/features/authentication/components/AuthenticationSteps/EnterPasswordForm.tsx b/src/features/authentication/components/AuthenticationSteps/EnterPasswordForm.tsx index 40f982c..d2e04a5 100644 --- a/src/features/authentication/components/AuthenticationSteps/EnterPasswordForm.tsx +++ b/src/features/authentication/components/AuthenticationSteps/EnterPasswordForm.tsx @@ -124,21 +124,21 @@ export const EnterPasswordForm = ({ - + {t('enterPassword.loginWithPassword')}