From e3b3ffddd4a4fc6d82214fb3814ce302a51917cb Mon Sep 17 00:00:00 2001 From: zsloan Date: Thu, 9 Nov 2023 19:11:44 +0000 Subject: Make adjustments to correlation table - Disable scroller when fewer than 2000 rows. Scroller causes a problem where you can't reach certain rows when manually scroller when rows are too 'tall' (so when descriptions are long and the window is smaller) - Disable width for Abbreviation and increase width for Peak Position so it doesn't get pushed to two lines --- wqflask/wqflask/templates/correlation_page.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wqflask/wqflask/templates/correlation_page.html b/wqflask/wqflask/templates/correlation_page.html index be43e076..34250a37 100644 --- a/wqflask/wqflask/templates/correlation_page.html +++ b/wqflask/wqflask/templates/correlation_page.html @@ -359,7 +359,6 @@ { 'title': "Abbreviation", 'type': "natural", - 'width': "200px", 'data': null, 'render': function(data) { try { @@ -453,7 +452,7 @@ { 'title': "Peak Location", 'type': "natural-minus-na", - 'width': "125px", + 'width': "160px", 'data': "lrs_location" }, { @@ -510,6 +509,9 @@ } } ], + {% if table_json|length > 2000 %} + "scroller": false, + {% endif %} {% if target_dataset.type == 'Geno' %} "order": [[6, "asc" ]], {% elif target_dataset.type == 'Publish' %} -- cgit 1.4.1