[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 <jvm-odoo@users.noreply.github.com>
This commit is contained in:
Jason Van Malder
2020-01-17 10:10:04 +00:00
parent e3f1802d4c
commit 6afb7074e4
@@ -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 {