summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2018-03-07 11:40:25 +0100
committerqsm-odoo <qsm@odoo.com>2018-03-07 15:05:17 +0100
commitb7b8634575f3720593f5ad05d9dc828fb5b4d943 (patch)
treef68b83ab682cb2b79528e0ea5f1f8ee5ccdd9e20 /addons/web/static/src
parent98547bf0cdb71401842ad6aa7777535bdc96e980 (diff)
[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
Diffstat (limited to 'addons/web/static/src')
-rw-r--r--addons/web/static/src/less/form_view.less4
1 files changed, 3 insertions, 1 deletions
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;
}