From 44c98a2f4eb67bfe08e4f711e629144ae3e3cedd Mon Sep 17 00:00:00 2001 From: Kim Huebel Date: Mon, 14 Dec 2020 10:30:05 +0000 Subject: [PATCH] Added some no-wraps on some columns --- html/css/styles.css | 6 +----- html/index.html | 10 ++++++++-- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/html/css/styles.css b/html/css/styles.css index 8b898de..d16b55b 100644 --- a/html/css/styles.css +++ b/html/css/styles.css @@ -16,7 +16,6 @@ body { background-color: #f5f5f5; } - /* Custom page CSS -------------------------------------------------- */ /* Not required for template or sticky footer method. */ @@ -26,11 +25,8 @@ body { padding: 0 15px; } -nowrap { - white-space:nowrap -} +td.dt-nowrap { white-space: nowrap } .red { background-color: Coral !important; } - diff --git a/html/index.html b/html/index.html index a943b0f..08e799a 100644 --- a/html/index.html +++ b/html/index.html @@ -262,11 +262,17 @@ $(row).removeClass('red'); } }, - "order": [[ 0, "desc" ]] + "order": [[ 0, "desc" ]], + "columnDefs": [ + { className: "dt-nowrap", "targets": [ 0, 1, 2, 3, 7 ] } + ] } ); var t_localh = $('#localHeard').DataTable( { - "order": [[ 0, "desc" ]] + "order": [[ 0, "desc" ]], + "columnDefs": [ + { className: "dt-nowrap", "targets": [ 0, 1, 2, 3, 6 ] } + ] } ); var t_dapnet = $('#dapnetmessages').DataTable( {