diff --git a/assets/css/src/modal.styl b/assets/css/src/modal.styl index 9723b8d1cb..cd5de112d5 100644 --- a/assets/css/src/modal.styl +++ b/assets/css/src/modal.styl @@ -77,10 +77,14 @@ body.mailpoet_modal_opened .mailpoet_popup_body height: 92% + margin-top: 20px .button + .button margin-left: 10px +.mailpoet_popup_has_title .mailpoet_popup_body + margin-top: 30px + // modal panel .mailpoet_modal_overlay.mailpoet_panel_overlay top: 32px diff --git a/assets/js/src/modal.js b/assets/js/src/modal.js index 1d15e42e2d..3a41bb9f52 100644 --- a/assets/js/src/modal.js +++ b/assets/js/src/modal.js @@ -147,6 +147,8 @@ define('modal', ['mailpoet', 'jquery'], jQuery('#mailpoet_modal_overlay') .append(modal(this.options)); // set title + jQuery('#mailpoet_popup') + .toggleClass('mailpoet_popup_has_title', Boolean(this.options.title)); jQuery('#mailpoet_popup_title h2') .html(this.options.title); } else if (this.options.type === 'panel') {