From bf7997e5eecc93ad8a6d2a9fc7bf572ac9014a9e Mon Sep 17 00:00:00 2001 From: Romeo Fragomeli Date: Mon, 3 Oct 2022 09:59:56 +0000 Subject: [PATCH] [FIX] web: quick create inputs don't take all space MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds `width: 100%` on the `.o_field_widget` so the input it can take the all width in the "Quick Create" form. Also, this commit fixes the CSS selector for the `margin` rule as in the "Quick Create" form view there is no `.o_group` anymore on `.o_inner_group`. Steps to reproduce: * Go to project * Select a project * Click on the `Create` button => BUG closes odoo/odoo#102151 X-original-commit: 774213758c7ddf7b74a9b370457f017e09d9bbcf Signed-off-by: Adrien Dieudonné (adr) Signed-off-by: Romeo Fragomeli (rfr) --- addons/web/static/src/views/form/form_controller.scss | 3 +-- addons/web/static/src/views/kanban/kanban_controller.scss | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/addons/web/static/src/views/form/form_controller.scss b/addons/web/static/src/views/form/form_controller.scss index 2e820a5b8f4..015d7840915 100644 --- a/addons/web/static/src/views/form/form_controller.scss +++ b/addons/web/static/src/views/form/form_controller.scss @@ -42,6 +42,7 @@ } .o_field_widget { + width: 100%; margin-bottom: $o-form-spacing-unit * 2; > .o_field_widget { @@ -397,8 +398,6 @@ } .o_field_widget { - width: 100%; - > .btn { flex: 0 0 auto; padding: 0 10px; diff --git a/addons/web/static/src/views/kanban/kanban_controller.scss b/addons/web/static/src/views/kanban/kanban_controller.scss index 5e38955be1f..e61de8b079d 100644 --- a/addons/web/static/src/views/kanban/kanban_controller.scss +++ b/addons/web/static/src/views/kanban/kanban_controller.scss @@ -45,7 +45,7 @@ margin-top: calc(var(--KanbanRecord-margin-h) * 2); padding: 8px; - .o_form_view .o_group.o_inner_group { + .o_form_view .o_inner_group { margin: 0; } }