diff options
author | zsloan | 2023-11-09 19:11:44 +0000 |
---|---|---|
committer | zsloan | 2023-11-09 20:13:10 +0000 |
commit | e3b3ffddd4a4fc6d82214fb3814ce302a51917cb (patch) | |
tree | 108436a3b58471865b0ae09de45a98a5454d9302 | |
parent | 16be1ce85ac1f9fc92ef366dcdc5186536dc4849 (diff) | |
download | genenetwork2-e3b3ffddd4a4fc6d82214fb3814ce302a51917cb.tar.gz |
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
-rw-r--r-- | wqflask/wqflask/templates/correlation_page.html | 6 |
1 files 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' %} |