Add preview sidebar visual enhancements

[MAILPOET-2811]
This commit is contained in:
Rostislav Wolny
2020-05-19 16:07:11 +02:00
committed by Veljko V
parent ed4ba6ec29
commit dd1f89f4d9
6 changed files with 20 additions and 1 deletions

View File

@@ -56,6 +56,12 @@
max-height: 100%; max-height: 100%;
width: 100%; width: 100%;
} }
.mailpoet_preview_form_type_selection {
label {
font-weight: bold;
}
}
} }
.mailpoet_form_preview_modal_overlay { .mailpoet_form_preview_modal_overlay {
@@ -76,9 +82,13 @@
flex-direction: row; flex-direction: row;
.mailpoet_preview_sidebar { .mailpoet_preview_sidebar {
padding: 35px 15px 10px 0; padding: 35px 20px 10px 0;
width: 300px; width: 300px;
& > .components-base-control, & > p, & > hr {
margin-bottom: 18px;
}
.components-base-control__label { .components-base-control__label {
display: block; display: block;
} }
@@ -95,5 +105,9 @@
font-weight: normal; font-weight: normal;
margin-bottom: 4px; margin-bottom: 4px;
} }
.mailpoet-size-settings-control .components-range-control__number {
min-width: 5em;
}
} }
} }

View File

@@ -28,6 +28,7 @@ const FixedBarSettings = () => {
return ( return (
<> <>
<p>{MailPoet.I18n.t('placeFixedBarFormOnPagesDescription')}</p> <p>{MailPoet.I18n.t('placeFixedBarFormOnPagesDescription')}</p>
<hr />
<ToggleControl <ToggleControl
label={MailPoet.I18n.t('placeFormOnAllPages')} label={MailPoet.I18n.t('placeFormOnAllPages')}
checked={formSettings.placeFixedBarFormOnAllPages || false} checked={formSettings.placeFixedBarFormOnAllPages || false}

View File

@@ -82,6 +82,7 @@ const OtherSettings = () => {
<p>{addFormShortcodeHint}</p> <p>{addFormShortcodeHint}</p>
<p>{addFormPhpIframeHint}</p> <p>{addFormPhpIframeHint}</p>
{getCopyTextArea()} {getCopyTextArea()}
<hr />
<SizeSettings <SizeSettings
label={MailPoet.I18n.t('formSettingsWidth')} label={MailPoet.I18n.t('formSettingsWidth')}
value={formSettings.otherStyles.width} value={formSettings.otherStyles.width}

View File

@@ -27,6 +27,7 @@ const PopUpSettings = () => {
return ( return (
<> <>
<p>{MailPoet.I18n.t('placePopupFormOnPagesDescription')}</p> <p>{MailPoet.I18n.t('placePopupFormOnPagesDescription')}</p>
<hr />
<ToggleControl <ToggleControl
label={MailPoet.I18n.t('placeFormOnAllPages')} label={MailPoet.I18n.t('placeFormOnAllPages')}
checked={formSettings.placePopupFormOnAllPages || false} checked={formSettings.placePopupFormOnAllPages || false}

View File

@@ -97,6 +97,7 @@ const FormPreview = () => {
label={MailPoet.I18n.t('formPlacementLabel')} label={MailPoet.I18n.t('formPlacementLabel')}
value={previewSettings.formType} value={previewSettings.formType}
onChange={setFormType} onChange={setFormType}
className="mailpoet_preview_form_type_selection"
data-automation-id="form_type_selection" data-automation-id="form_type_selection"
options={[ options={[
{ value: 'others', label: MailPoet.I18n.t('placeFormOthers') }, { value: 'others', label: MailPoet.I18n.t('placeFormOthers') },

View File

@@ -28,6 +28,7 @@ const SlideInSettings = () => {
return ( return (
<> <>
<p>{MailPoet.I18n.t('placeSlideInFormOnPagesDescription')}</p> <p>{MailPoet.I18n.t('placeSlideInFormOnPagesDescription')}</p>
<hr />
<ToggleControl <ToggleControl
label={MailPoet.I18n.t('placeFormOnAllPages')} label={MailPoet.I18n.t('placeFormOnAllPages')}
checked={formSettings.placeSlideInFormOnAllPages || false} checked={formSettings.placeSlideInFormOnAllPages || false}