diff --git a/addons/mass_mailing/static/src/js/mailing_mailing_view_form_full_width.js b/addons/mass_mailing/static/src/js/mailing_mailing_view_form_full_width.js index d60cbf5a329..31e9c296df9 100644 --- a/addons/mass_mailing/static/src/js/mailing_mailing_view_form_full_width.js +++ b/addons/mass_mailing/static/src/js/mailing_mailing_view_form_full_width.js @@ -27,6 +27,7 @@ export class MassMailingFullWidthViewController extends formView.Controller { ); onMounted(() => { $('.o_content').on('scroll.repositionMailingEditorSidebar', throttledRepositionSidebar); + $('.o_form_sheet_bg').on('scroll.repositionMailingEditorSidebar', throttledRepositionSidebar); }); onWillUnmount(() => { $('.o_content').off('.repositionMailingEditorSidebar'); diff --git a/addons/mass_mailing/static/src/scss/mass_mailing.scss b/addons/mass_mailing/static/src/scss/mass_mailing.scss index e821d82e4d8..80f4f5d29e2 100644 --- a/addons/mass_mailing/static/src/scss/mass_mailing.scss +++ b/addons/mass_mailing/static/src/scss/mass_mailing.scss @@ -5,54 +5,24 @@ .o_notebook .tab-content .tab-pane .o_mail_body { // cancel the padding of the form_sheet - margin-top: -$o-sheet-cancel-hpadding; - margin-left: -$o-sheet-cancel-hpadding; - margin-right: -$o-sheet-cancel-hpadding; - margin-bottom: -40px; + margin: -$o-sheet-cancel-hpadding calc(var(--formView-sheet-padding-x) * -1) -40px; + } + + .oe-toolbar { + margin: 0; } } @include media-breakpoint-up(lg, $o-extra-grid-breakpoints) { .o_form_view .o_form_sheet .o_notebook .tab-content .tab-pane .o_mail_body { // cancel the padding of the form_sheet when breakpoints are reached - margin-left: -$o-sheet-cancel-hpadding*2; - margin-right: -$o-sheet-cancel-hpadding*2; + margin-left: calc(var(--formView-sheet-padding-x) * -1); + margin-right: calc(var(--formView-sheet-padding-x) * -1); } } -.o_form_view.o_mass_mailing_mailing_form.o_mass_mailing_form_full_width .o_form_renderer { - .o_form_statusbar { - margin-bottom: 0; - - .o_statusbar_buttons { - flex-grow: 1; - } - } - .o-mail-Form-chatter { - margin: 0; - max-width: unset; - width: 100%; - padding: 0; - } - .wysiwyg_iframe { - border: none; - } - .oe_button_box { - margin-top: unset; - - > .btn.oe_stat_button { - max-width: 135px; - border-left: 1px solid $border-color; - } - > .o_dropdown_more { - width: 135px; - } - } - - .o_notebook .tab-content .tab-pane .alert { - margin-left: -$o-sheet-cancel-hpadding; - margin-right: -$o-sheet-cancel-hpadding; - } +.o_form_view.o_mass_mailing_mailing_form .wysiwyg_iframe { + border: none; } .o_form_view.o_mass_mailing_mailing_form .o_form_renderer { diff --git a/addons/mass_mailing/views/mailing_mailing_views.xml b/addons/mass_mailing/views/mailing_mailing_views.xml index f9449e78668..60a171ef430 100644 --- a/addons/mass_mailing/views/mailing_mailing_views.xml +++ b/addons/mass_mailing/views/mailing_mailing_views.xml @@ -58,7 +58,7 @@ mailing.mailing - + - - - - - - emails have been canceled and will not be sent. - - - - - - - - emails are in queue and will be sent soon. - - - - - - - - emails have been sent. - - - - There wasn't enough recipients given to this mailing. - - - - - - - emails could not be sent. - - - - - - This mailing is scheduled for - . - - - - - - + + + + + + emails have been canceled and will not be sent. + + + + + + + + emails are in queue and will be sent soon. + + + + + + + + emails have been sent. + + + + There wasn't enough recipients given to this mailing. + + + + + + + emails could not be sent. + + + + + + This mailing is scheduled for + . + + + + + + - - - + @@ -422,12 +420,6 @@ - - - - - - - - - - - - - - - o_mass_mailing_iframe @@ -472,7 +455,6 @@ - diff --git a/addons/web_editor/static/src/js/wysiwyg/wysiwyg_iframe.js b/addons/web_editor/static/src/js/wysiwyg/wysiwyg_iframe.js index ca0ca1f6028..f817631790f 100644 --- a/addons/web_editor/static/src/js/wysiwyg/wysiwyg_iframe.js +++ b/addons/web_editor/static/src/js/wysiwyg/wysiwyg_iframe.js @@ -70,7 +70,6 @@ patch(Wysiwyg.prototype, { this.$root = this.$editable; } this.$iframe = $('').css({ - 'min-height': '55vh', width: '100%' }); var avoidDoubleLoad = 0; // this bug only appears on some configurations.