From 4cd383175f662c96fca9ddf8e89b21ab180bda04 Mon Sep 17 00:00:00 2001 From: Benjamin Vray Date: Tue, 26 Apr 2022 13:00:23 +0000 Subject: [PATCH] [FIX] web_editor: prevent horizontal overflow caused by m2m widget When a vertical overflow is triggered in the snippets menu, a vertical scrollbar is added making the snippets menu slightly smaller. Most widgets properly adapt their width, however the many2many dropdown widget does not, causing a horizontal overflow and its associated scrollbar. Steps to reproduce the bug : - Drag and drop the "text-image" snippet in a page. - Click on the image in this snippet. - Set the "visibility" option to "Conditionally". - A horizontal scrollbar appears in the editor panel. This commit adapts the CSS of the m2m widget to solve the issue. task-2779530 closes odoo/odoo#107305 X-original-commit: de96c25a5ad94c524e129053ebbfcb10b020d069 Signed-off-by: Guillaume-gdi --- addons/web_editor/static/src/scss/wysiwyg_snippets.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/web_editor/static/src/scss/wysiwyg_snippets.scss b/addons/web_editor/static/src/scss/wysiwyg_snippets.scss index 8931198297c..e969794c9f2 100644 --- a/addons/web_editor/static/src/scss/wysiwyg_snippets.scss +++ b/addons/web_editor/static/src/scss/wysiwyg_snippets.scss @@ -1513,6 +1513,7 @@ body.editor_enable.editor_has_snippets { .o_we_m2m { we-list, we-list > div, we-list we-select { margin-top: 0; + max-width: 100%; } }