From b924001767199a7d5c0a471c4a44d4b45130b2b9 Mon Sep 17 00:00:00 2001 From: JF-Cozy Date: Fri, 13 May 2022 16:09:28 +0200 Subject: [PATCH] fix: Action buttons at the bottom of Dialog/IllustrationDialog on mobile fix https://github.com/cozy/cozy-ui/issues/1868 --- react/CozyDialogs/ConfirmDialog.jsx | 8 +++++++- react/CozyDialogs/Dialog.jsx | 8 +++++++- react/CozyDialogs/IllustrationDialog.jsx | 8 +++++++- react/MuiCozyTheme/makeOverrides.js | 14 +++++++++++++- 4 files changed, 34 insertions(+), 4 deletions(-) diff --git a/react/CozyDialogs/ConfirmDialog.jsx b/react/CozyDialogs/ConfirmDialog.jsx index 18738bc6d2..e9a9005b33 100644 --- a/react/CozyDialogs/ConfirmDialog.jsx +++ b/react/CozyDialogs/ConfirmDialog.jsx @@ -48,7 +48,13 @@ const ConfirmDialog = props => { {title} )} - {content} +
+ {content} +
{actions && ( { )}
- {content} +
+ {content} +
{actions && ( {
{title}
)} - {content} +
+ {content} +
{actions && ( ({ marginBottom: '24px', '&.withFluidActions': { [theme.breakpoints.down('sm')]: { - marginBottom: '16px' + marginBottom: 0, + display: 'flex', + flexDirection: 'column', + height: '100%', + '& .dialogContentWrapper': { + flexGrow: 1, + '&:not(.withActions)': { + paddingBottom: '16px' + } + }, + '& .cozyDialogActions': { + paddingBottom: '16px' + } } }, '& .dialogTitleFluidContainer': {