From a842f6b3eebba5ae52fa6aaf0462364c2d7eda7a Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Mon, 30 Jul 2018 12:57:27 +0200 Subject: [PATCH] [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. --- addons/web/static/src/scss/modal.scss | 7 +++++++ 1 file changed, 7 insertions(+) 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; + } } }