From 1bfd21b6dc39dade9b4cd9bbfa2881044aedb082 Mon Sep 17 00:00:00 2001 From: jvm-odoo Date: Fri, 20 Mar 2020 10:02:28 +0000 Subject: [PATCH] [FIX] sale, sale_management: fix mobile quantity input in SO template Issue - Install eCommerce with any theme - Website > Enable optional product - Create a SO with an optional product - Save > Customer Preview - Mobile view with inspector - Click on the shopping cart icon in the optional product line Quantity selector is not correctly displayed Cause First, the input width is 50%, which means very small on mobile and there are paddings on the input and the buttons Solution Remove the 50% width and paddings on mobile It allows to see 3 chars on very small mobile screen. OPW-2220893 closes odoo/odoo#48423 X-original-commit: 38e90e09239eb75bd25001c7870758b380159ad0 Signed-off-by: Jason Van Malder (jvm) --- addons/sale/static/src/scss/sale_portal.scss | 12 ++++++++++++ .../sale_management/views/sale_portal_templates.xml | 6 +++--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/addons/sale/static/src/scss/sale_portal.scss b/addons/sale/static/src/scss/sale_portal.scss index 5bf4aefcb51..a9d57cff022 100644 --- a/addons/sale/static/src/scss/sale_portal.scss +++ b/addons/sale/static/src/scss/sale_portal.scss @@ -14,3 +14,15 @@ .sale_tbody .o_line_note { word-break: break-all; } + +.o_portal .sale_tbody .js_quantity_container { + width: 50%; + + .js_quantity { + text-align: center; + } + + @include media-breakpoint-down(sm) { + width: 100%; + } +} \ No newline at end of file diff --git a/addons/sale_management/views/sale_portal_templates.xml b/addons/sale_management/views/sale_portal_templates.xml index d248f2d2c2d..b29f06c08f5 100644 --- a/addons/sale_management/views/sale_portal_templates.xml +++ b/addons/sale_management/views/sale_portal_templates.xml @@ -79,10 +79,10 @@ -
+
- + @@ -91,7 +91,7 @@
- +