From 63ce989b610ea21044e57ccc5fdf04c06c53bd46 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 24 Feb 2021 16:58:28 +0000 Subject: [PATCH] Bug 27777: (alternate) Improve tables on Point of Sale page for low screen resolutions This alternate solution makes these minor changes: - The Bootstrap grid classes are adjusted so that the breakpoint between the two-column layout and the single-column layout happens at a wider browser-width. - The DataTable configurations are modified to set "autoWidth" to "false," which gives us a more fluid behavior. Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart --- koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt index b713d81367..5dc343b36d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt @@ -21,7 +21,7 @@
-
+
[% IF ( registers.size == 0 ) %]
@@ -46,7 +46,7 @@
-
+
Items for purchase Please select items from below to add to this transaction: @@ -78,7 +78,7 @@
-
+
This sale @@ -149,7 +149,7 @@ [% END %]
-
+
@@ -333,7 +333,8 @@ nFoot.getElementsByTagName('td')[1].innerHTML = iTotalPrice.format_price(); $('#paid').val(iTotalPrice); $('#paid').trigger('change'); - } + }, + "autoWidth": false })); $("#sale").on("click", "button.drop", function(){ @@ -344,6 +345,7 @@ var items_table = KohaTable("invoices", { "sPaginationType": "full", "aaSorting": [[ 0, "asc" ]], + "autoWidth": false }, items_columns_settings, false); $("#invoices").on("click", ".add_button", function(e) { -- 2.39.5