From 6669e1d5d6bea37c93c284fe75745b0ce57c048e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Souk=C3=A9ina=20Bojabza?= Date: Fri, 31 Mar 2023 15:20:05 +0000 Subject: [PATCH] [FIX] web_editor: avoid horizontal scrollbar in right panel In edit mode, if the grid mode is toggled and if there are enough options in the right panel to have a vertical scrollbar (e.g. when we click on an image to have the image options), a horizontal scrollbar appears. This happens because the "Add Elements" widget is too large and it therefore overflows. This commit improves this widget style so it does not overflow, which will prevent the horizontal scrollbar from appearing. task-3098222 closes odoo/odoo#119288 X-original-commit: 784a8f36471a6b7c05452f6b39ee61f6b859d9c9 Signed-off-by: Outagant Mehdi (mou) --- addons/web_editor/static/src/scss/wysiwyg_snippets.scss | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/web_editor/static/src/scss/wysiwyg_snippets.scss b/addons/web_editor/static/src/scss/wysiwyg_snippets.scss index 45f41f0c7c3..e048394c1c3 100644 --- a/addons/web_editor/static/src/scss/wysiwyg_snippets.scss +++ b/addons/web_editor/static/src/scss/wysiwyg_snippets.scss @@ -2531,16 +2531,16 @@ we-button:hover .o_we_shape_animated_label > span { // GRID LAYOUT we-button.o_grid { min-width: fit-content; - padding-left: 3px !important; - padding-right: 3px !important; + padding-left: 4.5px !important; + padding-right: 4.5px !important; } we-select.o_grid we-toggler { width: fit-content !important; } -we-button-group.o_grid { - min-width: fit-content !important; +we-button-group.o_grid we-selection-items { + width: fit-content !important; } // Background grid.