diff --git a/addons/web_editor/static/src/js/editor/snippets.editor.js b/addons/web_editor/static/src/js/editor/snippets.editor.js index 038d2ad27fd..3c7c7dc7d2f 100644 --- a/addons/web_editor/static/src/js/editor/snippets.editor.js +++ b/addons/web_editor/static/src/js/editor/snippets.editor.js @@ -3110,6 +3110,8 @@ var SnippetsMenu = Widget.extend({ break; } + this.options.wysiwyg.toolbar.el.classList.remove('oe-floating'); + const $customizeBlock = $(''); const $title = $("" + titleText + ""); diff --git a/addons/web_editor/static/src/scss/wysiwyg.scss b/addons/web_editor/static/src/scss/wysiwyg.scss index 5bfbf05f60d..c6547519c2d 100644 --- a/addons/web_editor/static/src/scss/wysiwyg.scss +++ b/addons/web_editor/static/src/scss/wysiwyg.scss @@ -28,7 +28,18 @@ $o-we-zindex: $o-we-overlay-zindex + 1 !default; margin: 0; padding: 0; } + +// Toolbar - Generic rules shared among backend & frontend .oe-toolbar { + .btn { + display: flex; + align-items: center; + justify-content: center; + } +} + +// Floating Toolbar +.oe-toolbar.oe-floating { padding-bottom: 0; border-bottom: $o-we-border-width solid $o-we-fg-light; background-color: $o-we-bg; diff --git a/addons/web_editor/static/src/xml/editor.xml b/addons/web_editor/static/src/xml/editor.xml index 32e020fd7a7..d30b801506c 100644 --- a/addons/web_editor/static/src/xml/editor.xml +++ b/addons/web_editor/static/src/xml/editor.xml @@ -6,7 +6,7 @@ -
+