From d8848e014719d8e4f44dbb46632da83d30f07bb2 Mon Sep 17 00:00:00 2001 From: MerlinGuillaume Date: Wed, 2 Aug 2023 14:00:24 +0000 Subject: [PATCH] [FIX] web: limit the width of the filter field selector MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If we use a long enough sequence of field in a custom search filter, the sequence of fields will overlap the operator or value Steps to reproduce: 1. Open any view with a search 2. Add a custom filter 3. Use enough related fields in the filter so that it creates a long sequence of fields, it will overlap the operator at one point Solution: Limit the width of the `o_model_field_selector_value` class and break its content opw-3450099 closes odoo/odoo#130675 X-original-commit: 472923933e145b39f995051ebe8b45a75669a707 Signed-off-by: Michaƫl Mattiello (mcm) Signed-off-by: Guillaume Merlin (megu) --- .../src/core/model_field_selector/model_field_selector.scss | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/web/static/src/core/model_field_selector/model_field_selector.scss b/addons/web/static/src/core/model_field_selector/model_field_selector.scss index 84c596382db..3759b5fd3e6 100644 --- a/addons/web/static/src/core/model_field_selector/model_field_selector.scss +++ b/addons/web/static/src/core/model_field_selector/model_field_selector.scss @@ -7,6 +7,8 @@ > .o_model_field_selector_value { min-height: 20px; // needed when there is no value in it and used standalone + max-width: 100%; + word-wrap: break-word; &:active, &:focus, &:active:focus { outline: none; }