[FIX] web_editor,mass_mailing: prevent sidebar glitch

Before this commit, the sidebar visibility was toggled with a css
transition, each time a change was made in the html_field.
Additionally, the transition was not working properly when opening
a mailing. Because this transition was made for website and this code
is no longer being used in website and is not usefull for mass mailing
we can remove it.

task-3100202

X-original-commit: 21056444562e530fb811095b4805345709295ca3
Part-of: odoo/odoo#112908
This commit is contained in:
Nicolas Bayet
2023-02-16 17:57:19 +01:00
parent 0c9f5147b3
commit 172a40709c
5 changed files with 28 additions and 26 deletions
+1
View File
@@ -116,6 +116,7 @@
'mass_mailing/static/src/js/snippets.editor.js',
'mass_mailing/static/src/js/wysiwyg.js',
'mass_mailing/static/src/xml/mass_mailing.editor.xml',
'mass_mailing/static/src/scss/mass_mailing.wysiwyg.scss',
],
'web.assets_common': [
'mass_mailing/static/src/js/tours/**/*',
@@ -344,16 +344,19 @@ body.editor_enable.o_basic_theme.o_in_iframe {
display: block;
}
}
#oe_snippets.o_loaded {
transform: translateX(0);
}
> .o_we_customize_panel .oe-toolbar {
#style.dropup, #font-size.dropup {
> .dropdown-menu {
overflow-y: scroll;
max-height: 200px;
}
.o_mass_mailing_iframe #oe_snippets.o_loaded {
transition: none;
transform: translateX(0);
> .o_we_customize_panel .oe-toolbar {
#style.dropup, #font-size.dropup {
> .dropdown-menu {
overflow-y: scroll;
max-height: 200px;
}
}
}
}
@@ -0,0 +1,15 @@
.o_mass_mailing_iframe body {
padding-right: $o-we-sidebar-width !important;
#web_editor-top-edit .note-popover .popover {
right: $o-we-sidebar-width !important;
}
.modal:not(.o_technical_modal) {
top: 0 !important;
// set z-index so customize options visible on dialog.
z-index: $o-we-overlay-zindex - 1;
// just for fake backdrop effect
background-color: rgba(66, 66, 66, 0.4);
}
}
@@ -23,7 +23,7 @@
<xpath expr="//t[@id='default_snippets']" position="replace">
<t id="default_snippets">
<t t-set="company_id" t-value="res_company"/>
<div id="email_designer_themes">
<div id="email_designer_themes" class="d-none">
<div data-name="basic"
title="Plain Text"
data-nowrap="1"
@@ -2,23 +2,6 @@
/// This file contains all variables and mixins that are specific to the editor.
///
// OVERRIDES FOR EDITOR WITH SNIPPETS
body.editor_enable.editor_has_snippets {
padding-right: $o-we-sidebar-width !important;
#web_editor-top-edit .note-popover .popover {
right: $o-we-sidebar-width !important;
}
.modal:not(.o_technical_modal) {
top: 0 !important;
// set z-index so customize options visible on dialog.
z-index: $o-we-overlay-zindex - 1;
// just for fake backdrop effect
background-color: rgba(66, 66, 66, 0.4);
}
}
// Mobile fix for mass mailing
@include media-breakpoint-down(lg) {
body.editor_enable.editor_has_snippets {