From e095e62f4af96d14943ebbe5f0da57c897bd44dc Mon Sep 17 00:00:00 2001 From: "Morgane (morm)" Date: Mon, 13 Feb 2023 10:18:13 +0000 Subject: [PATCH] [IMP] web_editor: different layout in mobile for toolbar Prior to this commit, the responsive behaviour of the toolbar was a scroll-x. I added conditions with widget.isMobile(), to allow the layout to change in mobile (ex: all the list options in a dropdown). closes odoo/odoo#110161 Signed-off-by: David Monjoie (dmo) --- .../web_editor/static/src/scss/wysiwyg.scss | 1 - addons/web_editor/static/src/xml/editor.xml | 83 ++++++++++++------- 2 files changed, 53 insertions(+), 31 deletions(-) diff --git a/addons/web_editor/static/src/scss/wysiwyg.scss b/addons/web_editor/static/src/scss/wysiwyg.scss index 9b7e6f4e5f3..43859847de8 100644 --- a/addons/web_editor/static/src/scss/wysiwyg.scss +++ b/addons/web_editor/static/src/scss/wysiwyg.scss @@ -530,7 +530,6 @@ img.o_we_selected_image { } .oe-toolbar.oe-floating { - box-shadow: 0 10px 10px -5px rgba(0, 0, 0, 0.1); display: flex; flex-wrap: wrap; margin-bottom: 1rem; diff --git a/addons/web_editor/static/src/xml/editor.xml b/addons/web_editor/static/src/xml/editor.xml index 9087ed3de0a..e1b38b477f0 100644 --- a/addons/web_editor/static/src/xml/editor.xml +++ b/addons/web_editor/static/src/xml/editor.xml @@ -74,28 +74,30 @@ - + + + + -
-
-
-
-
-
-
+ + +