Bug 26189: Improve styling of datatables within fieldsets
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 12 Aug 2020 12:58:58 +0000 (13:58 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 24 Aug 2020 08:52:07 +0000 (10:52 +0200)
Unset label width restriction: The label width restriction within
fieldsets causes issues for the datatables header. Unsetting it
explicitly here resolves the line wrapping issues :)

Reset margins for datatables found inside fieldsets such that the
datatable properly utilises the available space and restore the
default datatable label font weights.

Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss
koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt

index e339309..64f79cd 100644 (file)
@@ -898,6 +898,10 @@ fieldset {
             font-size: 105%;
             margin: 1em 0 1em 1em;
 
+            &.dataTable {
+                margin: 0;
+            }
+
             &.mceListBox {
                 margin: 0;
             }
@@ -921,6 +925,13 @@ fieldset {
             clear: both;
             padding-top: .5em;
         }
+
+        .dataTables_wrapper {
+            label {
+                font-weight: 400;
+                width: unset;
+            }
+        }
     }
 }
 
index 663c6d6..9cbb746 100644 (file)
             "bPaginate": false,
             "bFilter": false,
             "bInfo": false,
-            "bAutoWidth": false,
             "aoColumnDefs": [{
                 "aTargets": [-3],
                 "bSortable": false,
         var items_table = KohaTable("invoices", {
                "sPaginationType": "full",
                "aaSorting": [[ 0, "asc" ]],
-        }, items_columns_settings);
+        }, items_columns_settings, false);
 
         $(".add_button").on("click", function(e) {
             e.preventDefault();