Adjust form width rendering for below pages forms

[MAILPOET-3030]
This commit is contained in:
Rostislav Wolny
2020-07-09 11:32:35 +02:00
committed by Veljko V
parent 4628551801
commit 150f978c4f

View File

@@ -61,8 +61,8 @@ const FormStylingBackground = ({ children }) => {
maxWidth: '100%',
};
// Render virtual container for widgets with width in percent
if (previewSettings.formType === 'others' && formWidth.unit === 'percent') {
// Render virtual container for widgets and below pages/post forms with width in percent
if (['others', 'below_post'].includes(previewSettings.formType) && formWidth.unit === 'percent') {
style.maxWidth = 600;
}