From b17876f222269f688040b382e1b067a58f33efb6 Mon Sep 17 00:00:00 2001 From: Kim Hair Date: Fri, 10 Sep 2021 23:56:26 -0500 Subject: [PATCH] Fixed left 3 cols, removed sorted column highlighting --- site/css/main.css | 2 +- site/js/main.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/site/css/main.css b/site/css/main.css index 821bf11..1e6f7e2 100644 --- a/site/css/main.css +++ b/site/css/main.css @@ -19,7 +19,7 @@ box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);} thead{background-color:#292961; color:#fefefe; font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;} th, td{padding: 12px 15px;} - td.colPrice{display:flex; justify-content:space-between;} + td.colPrice{display:flex; justify-content:flex-end;} #quickShops tbody tr { border-bottom: 1px solid #dddddd; } diff --git a/site/js/main.js b/site/js/main.js index b1daf04..3eef75c 100644 --- a/site/js/main.js +++ b/site/js/main.js @@ -160,7 +160,7 @@ async function renderShops() { "columns": [ {"width":"auto"}, {"width":"5px"}, - {"width":"10%"}, + {"width":"52px"}, {"width":"auto"}, {"width":"auto"}, {"width":"auto"}, @@ -186,7 +186,7 @@ async function renderShops() { ], colReorder: { enable: true, - fixedColumnsLeft: 1, + fixedColumnsLeft: 3, realtime: false }, dom: '<"butt-wrapper"Blf>rtip', @@ -194,6 +194,7 @@ async function renderShops() { header: true }, "lengthMenu": [ [50, 100, -1], [50, 100, "ALL"] ], + "orderClasses": false, rowGroup: true, rowId: 'id', "scrollCollapse": true, -- GitLab