Adjust CSS of preview modal to cover full screen

[MAILPOET-2743]
This commit is contained in:
Rostislav Wolny
2020-04-15 17:52:06 +02:00
committed by Veljko V
parent 650337ed17
commit d67f7364a3
2 changed files with 42 additions and 0 deletions

View File

@@ -1,6 +1,47 @@
.mailpoet_spinner_wrapper { .mailpoet_spinner_wrapper {
align-items: center; align-items: center;
background: #ffffff;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
height: 100%;
justify-content: center; justify-content: center;
width: 100%;
}
.mailpoet_form_preview_modal {
border-radius: 0;
margin: 0;
min-height: 100%;
min-width: 100%;
.mailpoet-modal-header {
height: 26px;
margin-bottom: 0;
.mailpoet-modal-close {
top: 10px;
}
}
.mailpoet-modal-content {
align-items: stretch;
display: flex;
flex-direction: column;
position: relative;
}
.mailpoet_browser_preview {
height: 100%;
display: flex;
flex-direction: column;
}
.mailpoet_browser_preview_container {
height: 100%;
}
.mailpoet_form_preview_iframe {
height: 100%;
max-height: 100%;
width: 100%;
}
} }

View File

@@ -79,6 +79,7 @@ const FormPreview = () => {
title={MailPoet.I18n.t('formPreview')} title={MailPoet.I18n.t('formPreview')}
onRequestClose={onClose} onRequestClose={onClose}
fullScreen fullScreen
contentClassName="mailpoet_form_preview_modal"
> >
{form === null && ( {form === null && (
<div className="mailpoet_spinner_wrapper"> <div className="mailpoet_spinner_wrapper">