fix: responsiveness

This commit is contained in:
2025-07-26 17:08:32 +03:30
parent 67a4c4dee4
commit 8d72880695
3 changed files with 63 additions and 30 deletions

View File

@@ -13,32 +13,24 @@ export function InfoRowDisplay({
initials: string;
}) {
const { t } = useTranslation('profileSetting');
const displayValue = (value: string) =>
value?.trim() || t('settingForm.notDetermined');
return (
<>
<Box sx={{ px: 2, mb: 2 }}>
<Box
sx={{
display: 'flex',
flexDirection: { xs: 'column', sm: 'row' },
flexWrap: 'wrap',
alignItems: { xs: 'flex-start', sm: 'center' },
gap: { xs: 2, sm: 1 },
px: 2,
mb: 2,
gap: 2,
justifyContent: 'space-between',
width: '690px',
}}
>
<Box
sx={{
display: 'flex',
alignItems: 'center',
width: '337px',
// maxWidth: '337px',
flexWrap: 'wrap',
gap: 2,
}}
sx={{ display: 'flex', alignItems: 'center', gap: 2, width: '337px' }}
>
<Avatar
src={uploadedImageUrl || undefined}
@@ -61,7 +53,7 @@ export function InfoRowDisplay({
</Box>
</Box>
<Box>
<Box sx={{ display: 'flex', flexDirection: 'column', width: '337px' }}>
<Typography variant="caption" color="text.secondary">
{t('settingForm.country')}
</Typography>
@@ -75,7 +67,8 @@ export function InfoRowDisplay({
flexDirection: { xs: 'column', sm: 'row' },
flexWrap: 'wrap',
gap: 2,
px: 6,
mt: 2,
width: '690px',
}}
>
<DisplayField
@@ -87,6 +80,6 @@ export function InfoRowDisplay({
value={displayValue(data.nationalCode)}
/>
</Box>
</>
</Box>
);
}