Browse Source

[IMP] Keep table from breaking when customer name is too long, align-right the amount and make it's header take less space

pull/416/head
Iván Todorovich 5 years ago
committed by Roberto Fichera
parent
commit
ffe47c9a87
  1. 9
      pos_order_mgmt/static/src/css/pos.css
  2. 2
      pos_order_mgmt/static/src/xml/pos.xml

9
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;
}

2
pos_order_mgmt/static/src/xml/pos.xml

@ -33,7 +33,7 @@
<th name="th_ol_ref">Ref.</th>
<th name="th_ol_customer">Customer</th>
<th name="th_ol_date">Date</th>
<th name="th_ol_amount_total">Amount Total</th>
<th name="th_ol_amount_total">Amount</th>
<th name="th_ol_reprint"/>
</thead>
<tbody class="order-list-contents">

Loading…
Cancel
Save