Skip to content

Commit 13b1dac

Browse files
committed
fix some widths and padding for mobile view
1 parent 4957db6 commit 13b1dac

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

src/ui/screens/eligibilty-overview/components/EligibilityOverviewItem.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ const EligibilityOverviewItem = ({ t, item, eligible, isDesktop }) => {
3131
return (
3232
<VBox
3333
sx={{
34-
gap: 3,
34+
gap: 4,
3535
border: `1px solid ${theme.palette.white.dark}`,
3636
boxShadow: '0px 1px 2px rgba(0, 0, 0, 0.25)',
37-
padding: 4,
37+
padding: { xs: 2, sm: 4 },
3838
borderRadius: theme.shape.borderRadius
3939
}}
4040
>

src/ui/screens/question-pages/components/input-types/ProfileInputDate.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,13 @@ const ProfileInputDate = ({ t, value, setValue, error }) => {
2626
onChange={handleChange}
2727
slotProps={{
2828
textField: {
29-
sx: {
30-
minWidth: (theme) => `calc(${theme.typography.pxToRem(8 * t('app.datafields.pickBday').length)} + 60px)`,
31-
},
29+
fullWidth: true,
30+
sx: (theme) => ({
31+
width: '100%',
32+
[theme.breakpoints.up('sm')]: {
33+
maxWidth: 360,
34+
},
35+
}),
3236
},
3337
}}
3438
sx={

0 commit comments

Comments
 (0)