From aa5d8ecefdbe61d7565ed8a153adf1b0b79a385b Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Fri, 2 Sep 2022 13:31:36 +0000 Subject: [PATCH] [FIX] web: form: display larger title fields In form views, we want the fields displayed in the "oe_title" div to take full width. It worked before because we have a rule in webclient that applies on all almost all kinds of inputs (text, number,phone...). However, since we wrap fields in a div, those rules no longer have the wanted effect in our particular usecase. This commit is a heuristic, but it should solve most of the cases. It applies on all char fields displayed as title. Part-of: odoo/odoo#99503 --- addons/web/static/src/views/form/form_controller.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/web/static/src/views/form/form_controller.scss b/addons/web/static/src/views/form/form_controller.scss index 8edef36ea0a..7a8a34dfd28 100644 --- a/addons/web/static/src/views/form/form_controller.scss +++ b/addons/web/static/src/views/form/form_controller.scss @@ -102,7 +102,8 @@ $o-form-label-margin-right: 0px; } } - .o_row > div > .o_field_widget { + .o_row > div > .o_field_widget, + &.o_form_editable .oe_title .o_field_char { width: 100%; }