From fa66d1d4582ce4b2ea95a8ce812950c6e87755d3 Mon Sep 17 00:00:00 2001 From: Benjamin Vray Date: Thu, 2 Nov 2023 15:28:38 +0100 Subject: [PATCH] [FIX] web_editor: fix url input dropdown off screen Steps to reproduce the bug: - Open the Menu Editor. - Add a menu item. - Type a URL (which will trigger the autocomplete). - Bug: You can't select the last URLs in the autocomplete dropdown because it goes off screen and can't be scrolled. This bug was introduced by the commit [1]. Since this commit, all modal dialogs are vertically centered, which is why the bug fixed in this commit occurred. [1]: https://github.com/odoo/odoo/commit/dd141a22f44ea88af18448c4a6089252daeba8cc task-3580373 closes odoo/odoo#140846 X-original-commit: 23272e38d822c734d1ea2fdb404ba2b1d6890cb3 Signed-off-by: Romain Derie (rde) Signed-off-by: Benjamin Vray (bvr) --- addons/web_editor/static/src/scss/web_editor.common.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web_editor/static/src/scss/web_editor.common.scss b/addons/web_editor/static/src/scss/web_editor.common.scss index 6b09ce4f2dd..cd83afbcad7 100644 --- a/addons/web_editor/static/src/scss/web_editor.common.scss +++ b/addons/web_editor/static/src/scss/web_editor.common.scss @@ -942,7 +942,7 @@ section, .oe_img_bg, [data-oe-shape-data] { // Autocomplete dropdowns .ui-autocomplete { - max-height: 50vh; + max-height: 45vh; overflow-y: auto; overflow-x: hidden;