chore: card responsive

This commit is contained in:
مهرزاد قدرتی
2025-08-10 16:02:07 +03:30
parent a4ee95832f
commit 1584b7d7a8

View File

@@ -1,4 +1,4 @@
import { Paper } from '@mui/material'; import { Box, Paper } from '@mui/material';
import React, { type PropsWithChildren } from 'react'; import React, { type PropsWithChildren } from 'react';
// Beacuse in the otp verify there is a element outside of the authentication card // Beacuse in the otp verify there is a element outside of the authentication card
@@ -8,8 +8,13 @@ export const AuthenticationCard = ({ children }: PropsWithChildren) => {
elevation={0} elevation={0}
sx={{ sx={{
borderRadius: 4, borderRadius: 4,
p: 6, p: {
width: '34.5rem', xs: 4,
md: 6,
},
marginInline: 2,
width: (t) => `calc(100% - ${t.spacing(2)})`,
maxWidth: '552px',
}} }}
> >
{children} {children}