From 7b7aa99fc92c4f1e70e0640d8e96b4fd40dea8db Mon Sep 17 00:00:00 2001 From: "Achraf (abz)" Date: Wed, 7 Sep 2022 07:38:30 +0000 Subject: [PATCH] [FIX] web: Correct modals design Since https://github.com/odoo/odoo/pull/99503, o_xxl_form_view is removed from the modal but there was still an useless overflow present. Also we removed the `flex-flow: row nowrap;`, as the flex direction is handle by the `form_compiler` Note: for a display: flex the default value for direction and wrap are: ```css flex-direction: row; flex-wrap: nowrap; ``` To reproduce: - Add a bank account on accounting app - Choose "create it" at the bottom of the modal - The modal is broken closes odoo/odoo#99677 Signed-off-by: Aaron Bohy (aab) --- addons/web/static/src/views/form/form_controller.scss | 2 +- 1 file changed, 1 insertion(+), 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 8c7f97cff18..69776fba0de 100644 --- a/addons/web/static/src/views/form/form_controller.scss +++ b/addons/web/static/src/views/form/form_controller.scss @@ -681,6 +681,7 @@ $o-form-label-margin-right: 0px; .o_form_sheet_bg { padding: 0; + width: 100%; > .o_form_statusbar, > .alert { /** @@ -781,7 +782,6 @@ $o-form-label-margin-right: 0px; } .o_form_view.o_xxl_form_view { - flex-flow: row nowrap; .o_form_sheet_bg { flex: 1 1 auto; // Side chatter is disabled if this has to shrink but this was added for safety