From 150f978c4fbb1df1aafa16d8edd3b79a8827b8fb Mon Sep 17 00:00:00 2001 From: Rostislav Wolny Date: Thu, 9 Jul 2020 11:32:35 +0200 Subject: [PATCH] Adjust form width rendering for below pages forms [MAILPOET-3030] --- .../js/src/form_editor/components/form_styling_background.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/src/form_editor/components/form_styling_background.jsx b/assets/js/src/form_editor/components/form_styling_background.jsx index bc7dcb4bdb..991689f06a 100644 --- a/assets/js/src/form_editor/components/form_styling_background.jsx +++ b/assets/js/src/form_editor/components/form_styling_background.jsx @@ -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; }