[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 <gdi@odoo.com>
This commit is contained in:
Benjamin Vray
2022-12-06 14:34:42 +01:00
parent dc140ef115
commit 4cd383175f
@@ -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%;
}
}