From 125aad1573127e35476765ed16bf54b915e33375 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Todorovich?= Date: Fri, 2 Aug 2019 16:19:36 +0000 Subject: [PATCH] [IMP] Keep table from breaking when customer name is too long, align-right the amount and make it's header take less space --- pos_order_mgmt/static/src/css/pos.css | 9 +++++++++ pos_order_mgmt/static/src/xml/pos.xml | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/pos_order_mgmt/static/src/css/pos.css b/pos_order_mgmt/static/src/css/pos.css index b9cd64a4..f8c1ec0f 100644 --- a/pos_order_mgmt/static/src/css/pos.css +++ b/pos_order_mgmt/static/src/css/pos.css @@ -34,3 +34,12 @@ color: white; text-align: center; } + +.orderlist-screen table td[name='td_ol_amount_total'] { + text-align: right; +} + +/* Keep the table from breaking when the customer name is too long */ +.orderlist-screen table td:not([name='td_ol_customer']) { + white-space: nowrap; +} diff --git a/pos_order_mgmt/static/src/xml/pos.xml b/pos_order_mgmt/static/src/xml/pos.xml index 529a3a71..769ae352 100644 --- a/pos_order_mgmt/static/src/xml/pos.xml +++ b/pos_order_mgmt/static/src/xml/pos.xml @@ -33,7 +33,7 @@ Ref. Customer Date - Amount Total + Amount