From bc4127ad69aaa689def315a313637ba19813538c Mon Sep 17 00:00:00 2001 From: xlu-odoo Date: Thu, 20 Jan 2022 15:03:14 +0000 Subject: [PATCH] [REF] web: dialog, simplify scss MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Part of the overall v16 SCSS optimization/restyle (task-2704984). Additionally, this commit will fix the border-radius of modals that should be rounded in community. task-2734531 closes odoo/odoo#83128 Signed-off-by: Adrien Dieudonné (adr) --- addons/web/static/src/core/dialog/dialog.scss | 57 ++----------------- addons/web/static/src/core/dialog/dialog.xml | 6 +- addons/web/static/src/legacy/scss/modal.scss | 10 ---- .../src/webclient/actions/action_dialog.xml | 2 +- 4 files changed, 10 insertions(+), 65 deletions(-) diff --git a/addons/web/static/src/core/dialog/dialog.scss b/addons/web/static/src/core/dialog/dialog.scss index 18782781c07..429a11c6155 100644 --- a/addons/web/static/src/core/dialog/dialog.scss +++ b/addons/web/static/src/core/dialog/dialog.scss @@ -1,52 +1,7 @@ -.o_dialog { - > .modal { - display: block; - } -} - -.modal.o_technical_modal { - .modal-content { - border-radius: 0; - - .modal-header .modal-title { - word-break: break-word; - } - - .modal-footer { - flex-wrap: wrap; - text-align: left; - justify-content: flex-start; - - footer { - > :not(:first-child) { - margin-left: 0.25rem; - } - > :not(:last-child) { - margin-right: 0.25rem; - } - button { - margin-bottom: 0.5rem; - } - } - } - } - - @include media-breakpoint-up(sm) { - .modal-dialog .modal-content.o_dialog_error .modal-body { - overflow: visible; - display: flex; - flex-flow: column nowrap; - - > .alert, - > button { - flex: 0 0 auto; - } - - > .o_error_detail { - flex: 1 1 auto; - min-height: 0; - overflow: auto; - } - } - } +.modal.o_technical_modal .modal-footer { + gap: map-get($spacers, 1); + + button { + margin: 0; // Reset boostrap. + } } diff --git a/addons/web/static/src/core/dialog/dialog.xml b/addons/web/static/src/core/dialog/dialog.xml index 82a58ca57ec..8d38e572e64 100644 --- a/addons/web/static/src/core/dialog/dialog.xml +++ b/addons/web/static/src/core/dialog/dialog.xml @@ -3,7 +3,7 @@
-