From f88a1e9e7edec9aef994c569c44de43c267279fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Wed, 27 Jul 2022 11:53:44 +0000 Subject: [PATCH] [FIX] web: make css rules applying to oe_stat_button less specific Before this commit, the rules on oe_stat_button only applied if the stat button was a direct child of the button box. However, this is a problem with the way fields are now wrapped in a div, so it is no longer possible for a field to be styled like a stat button. With this commit, we simply make the rule less restrictive. Part-of: odoo/odoo#96865 --- 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 b752d7c3807..c168655e2ae 100644 --- a/addons/web/static/src/views/form/form_controller.scss +++ b/addons/web/static/src/views/form/form_controller.scss @@ -269,7 +269,7 @@ $o-form-label-margin-right: 0px; border-left-width: $border-width; } - > .btn.oe_stat_button, > .o_dropdown_more { + .btn.oe_stat_button, > .o_dropdown_more { flex: 0 0 auto; width: percentage(1/3); // Adapt the number of visible buttons for each screen width @include media-breakpoint-up(md) {