diff options
| author | qsm-odoo <qsm@odoo.com> | 2018-07-30 12:57:27 +0200 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2018-07-30 12:57:27 +0200 |
| commit | a842f6b3eebba5ae52fa6aaf0462364c2d7eda7a (patch) | |
| tree | ae2ea2c850545bc127f4d06e683f4b661a56cf0e | |
| parent | 66dd126053887a9c98724593012f25c8a5dd8a29 (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.
| -rw-r--r-- | addons/web/static/src/scss/modal.scss | 7 |
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; + } } } |
