From 06f15401a6f30648cddffdd07b765c6cb96fcf99 Mon Sep 17 00:00:00 2001 From: Adrien Widart Date: Tue, 15 Dec 2020 08:13:18 +0000 Subject: [FIX] point_of_sale: list 5 payment methods If a POS has more than 5 payment methods, the display is not correct: the list is full width when it should be on left (as long as the screen is large enough). This fix ensures the display is the same as the previous version, see (from v13): https://github.com/odoo/odoo/blob/732ba5ca51e628b9d9a7427acd30d01d83e85068/addons/point_of_sale/static/src/css/pos.css#L1213-L1215 So, if the screen is larger than 768px, the width of the list will be limited to 34% of the display area. OPW-2400629 closes odoo/odoo#63363 Signed-off-by: adwid --- addons/point_of_sale/static/src/css/pos.css | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'addons') diff --git a/addons/point_of_sale/static/src/css/pos.css b/addons/point_of_sale/static/src/css/pos.css index 723b69b00b8..6853fce5d8c 100644 --- a/addons/point_of_sale/static/src/css/pos.css +++ b/addons/point_of_sale/static/src/css/pos.css @@ -1349,6 +1349,12 @@ td { flex-direction: column; } +@media screen and (min-width: 768px) { + .screen .left-content { + max-width: 34% + } +} + .pos .btn-switch-payment { background-color: #6ec89b; border-radius: 0px; -- cgit v1.2.3