From 6afb7074e47459159b04a10a80d54557f3df4d7a Mon Sep 17 00:00:00 2001 From: Jason Van Malder Date: Fri, 17 Jan 2020 08:24:54 +0000 Subject: [PATCH] [FIX] sale: fix ecommerce quantity width Issue - Install eCommerce, use Graphene - Shop > Any product The add to cart button is shifted. Cause Quantity field take full-width & max-width is too large. Solution Remove width: 100% and reduce the max-width. Screenshots on OPW OPW-2166060 closes odoo/odoo#43459 X-original-commit: 48ce80f0678510b9a5ccc2da19b51b5c39c410b0 Signed-off-by: Jason Van Malder --- addons/sale/static/src/scss/product_configurator.scss | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/addons/sale/static/src/scss/product_configurator.scss b/addons/sale/static/src/scss/product_configurator.scss index d085a179485..65a3e0a486c 100644 --- a/addons/sale/static/src/scss/product_configurator.scss +++ b/addons/sale/static/src/scss/product_configurator.scss @@ -44,9 +44,13 @@ } } -.css_quantity input[name="add_qty"] { - max-width: 125px; - text-align: center; +.css_quantity { + width: initial; // We don't want the quantity form to be full-width + + input[name="add_qty"] { + max-width: 50px; + text-align: center; + } } option.css_not_available {