From 5ec51e164235133f8c2ba30a52a38fcbb95960b3 Mon Sep 17 00:00:00 2001 From: Romain Derie Date: Tue, 15 Dec 2020 12:14:56 +0000 Subject: [PATCH] [FIX] website: don't add top on bottom popup to prevent offscreen MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since 6ef622772f7, all modal have top property set. But since modals can be set as bottom modal, that top margin will make those go offscreen. closes odoo/odoo#63582 X-original-commit: 1f365c63cf5dd8b5038a6b1b9839fb086a5871e1 Signed-off-by: Jérémy Kersten (jke) --- addons/website/static/src/scss/website.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website/static/src/scss/website.scss b/addons/website/static/src/scss/website.scss index 92db8741467..2dad9f8f87f 100644 --- a/addons/website/static/src/scss/website.scss +++ b/addons/website/static/src/scss/website.scss @@ -88,7 +88,7 @@ $-seen-urls: (); #wrapwrap { // When the modal is in #wrapwrap, position top should be size of the navbar - .modal { + .modal:not(.s_popup_bottom) { top: $o-navbar-height; }