From e02abdb88958421888e70f762f2166469f5252bd Mon Sep 17 00:00:00 2001 From: "Jacky (trj)" Date: Mon, 5 Jul 2021 11:56:56 +0000 Subject: [PATCH] [FIX] point_of_sale: modal correctly aligned in mobile Every popup/modal was not correctly aligned in the mobile screen. It was never in the center and the right portion of the popup was never visible. With this commit, all popups are now correctly placed in mobile. closes odoo/odoo#72793 Signed-off-by: pimodoo --- addons/point_of_sale/static/src/css/pos.css | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/addons/point_of_sale/static/src/css/pos.css b/addons/point_of_sale/static/src/css/pos.css index 2f668c91875..63e2448e07c 100644 --- a/addons/point_of_sale/static/src/css/pos.css +++ b/addons/point_of_sale/static/src/css/pos.css @@ -38,6 +38,13 @@ div.modal.in { left: 50%; } +@media screen and (max-width: 768px) { + .ui-dialog, .modal-dialog { + padding: 0; + overflow: auto; + } +} + /* --- Generic Restyling and Resets --- */ html {