Skip to content

Commit

Permalink
Fixed success screen height for medium devices
Browse files Browse the repository at this point in the history
  • Loading branch information
surajeaton committed Sep 11, 2023
1 parent 57964be commit 9c4a089
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export const ChangePasswordDialogBase: React.FC<ChangePasswordDialogProps> = (pr
slotProps,
} = props;
const theme = useTheme();
const matchesMD = useMediaQuery(theme.breakpoints.down('md'));
const matchesSM = useMediaQuery(theme.breakpoints.down('sm'));
const [currentPassword, setCurrentPassword] = useState('');
const [buttonState, setButtonState] = useState(true);
Expand All @@ -86,7 +87,7 @@ export const ChangePasswordDialogBase: React.FC<ChangePasswordDialogProps> = (pr
<SuccessScreenBase
WorkflowCardBaseProps={{
sx: {
height: matchesSM ? '100vh' : '70vh',
height: matchesMD ? (matchesSM ? '100vh' : '62vh') : '70vh',
},
}}
{..._props}
Expand Down

0 comments on commit 9c4a089

Please sign in to comment.