Skip to content

Commit 578f450

Browse files
committed
arrange update button vertically for mobile view
1 parent 828a2f6 commit 578f450

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

src/ui/screens/profile-screen/components/ProfileDataList.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useState } from 'react';
22
import { VBox, HBox } from "@/ui/shared-components/LayoutBoxes";
3-
import { Typography } from "@mui/material";
3+
import { Box, Typography } from "@mui/material";
44
import useTranslation from "@/ui/language/useTranslation";
55
import theme from "@/theme";
66
import RegularButton from '@/ui/shared-components/buttons/RegularButton';
@@ -35,10 +35,13 @@ const ProfileDataList = () => {
3535
}}
3636
justifyContent={'center'}
3737
>
38-
<HBox sx={{
38+
<Box sx={{
39+
display: 'flex',
40+
flexDirection: { xs: 'column', sm: 'row' },
3941
justifyContent: 'space-between',
4042
alignItems: 'flex-start',
41-
flexWrap: 'wrap'
43+
flexWrap: 'wrap',
44+
gap: 2,
4245
}}>
4346
<VBox>
4447
<Typography variant='body2'>
@@ -67,7 +70,7 @@ const ProfileDataList = () => {
6770
}
6871

6972
</VBox>
70-
</HBox>
73+
</Box>
7174
{
7275
featureFlags.profileUpdates && open === index && datafieldDetails && (
7376
<ProfileUpdateField

0 commit comments

Comments
 (0)