From b7b8634575f3720593f5ad05d9dc828fb5b4d943 Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Wed, 7 Mar 2018 11:40:25 +0100 Subject: [FIX] web: statusbar buttons design when no statusbar status When there were no status widget in the form view statusbar, the left buttons appeared without any vertical space around them in a smaller statusbar. There also was a 1px mistake that made the buttons appear non-centered. Now they appear centered in any case and a row of buttons is always forcing the correct statusbar height. Closes https://github.com/odoo/odoo/pull/22053 opw-(1)813479 --- addons/web/static/src/less/form_view.less | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'addons/web/static/src/less/form_view.less') diff --git a/addons/web/static/src/less/form_view.less b/addons/web/static/src/less/form_view.less index cd9d550843a..ceff30ee4c2 100644 --- a/addons/web/static/src/less/form_view.less +++ b/addons/web/static/src/less/form_view.less @@ -165,7 +165,9 @@ .o-flex-flow(row, wrap); > .btn { - margin-right: 3px; + @o-statusbar-buttons-vmargin: 4px; + min-height: @odoo-statusbar-height - 2 * @o-statusbar-buttons-vmargin; + margin: @o-statusbar-buttons-vmargin 3px @o-statusbar-buttons-vmargin 0; padding-top: 2px; padding-bottom: 2px; } -- cgit v1.2.3