summaryrefslogtreecommitdiff
path: root/addons/web
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2018-07-30 12:57:27 +0200
committerqsm-odoo <qsm@odoo.com>2018-07-30 12:57:27 +0200
commita842f6b3eebba5ae52fa6aaf0462364c2d7eda7a (patch)
treeae2ea2c850545bc127f4d06e683f4b661a56cf0e /addons/web
parent66dd126053887a9c98724593012f25c8a5dd8a29 (diff)
[FIX] web: BS4, left-align buttons in modal footers
Modal footers now use flex to vertically center buttons. So our left-align style overridde had to be adapted. Also, we sometimes use footer buttons as non-direct children of the modal-footer, which is not a supported BS4 case, so we had to adapt that too.
Diffstat (limited to 'addons/web')
-rw-r--r--addons/web/static/src/scss/modal.scss7
1 files changed, 7 insertions, 0 deletions
diff --git a/addons/web/static/src/scss/modal.scss b/addons/web/static/src/scss/modal.scss
index 5dc3c1eb7d0..5d4aae44ff9 100644
--- a/addons/web/static/src/scss/modal.scss
+++ b/addons/web/static/src/scss/modal.scss
@@ -27,6 +27,13 @@
.modal-footer {
text-align: left;
+ justify-content: flex-start;
+
+ > div, > footer {
+ // TODO this rule should not be necessary if we used buttons
+ // as direct children of the modal-footer as normally required
+ flex: 1 1 auto;
+ }
}
}