From af386b6d11872d633cd23185c22e8f9f8d650fd2 Mon Sep 17 00:00:00 2001
From: zsloan
Date: Thu, 21 Jan 2021 14:27:46 -0600
Subject: Adjusted Search Result table column widths and header alignments
---
wqflask/wqflask/templates/search_result_page.html | 37 ++++++++++++-----------
1 file changed, 19 insertions(+), 18 deletions(-)
diff --git a/wqflask/wqflask/templates/search_result_page.html b/wqflask/wqflask/templates/search_result_page.html
index b8f89121..eb42eb3a 100644
--- a/wqflask/wqflask/templates/search_result_page.html
+++ b/wqflask/wqflask/templates/search_result_page.html
@@ -274,41 +274,42 @@
}
},
{
- 'title': "Location",
+ 'title': "
Location
",
'type': "natural-minus-na",
'width': "125px",
'data': "location"
},
{
- 'title': "Mean",
+ 'title': "Mean
",
'type': "natural-minus-na",
- 'width': "40px",
+ 'width': "30px",
'data': "mean",
'orderSequence': [ "desc", "asc"]
},
{
- 'title': "Peak LOD",
+ 'title': "LOD
",
'type': "natural-minus-na",
'data': "lod_score",
'width': "60px",
'orderSequence': [ "desc", "asc"]
},
{
- 'title': "Peak Location",
+ 'title': "Peak Location
",
'type': "natural-minus-na",
'width': "125px",
'data': "lrs_location"
},
{
- 'title': "Effect Size ",
+ 'title': "Size
",
'type': "natural-minus-na",
'data': "additive",
- 'width': "90px",
+ 'width': "60px",
'orderSequence': [ "desc", "asc"]
}{% elif dataset.type == 'Publish' %},
{
'title': "Description",
'type': "natural",
+ 'width': "500px",
'data': null,
'render': function(data, type, row, meta) {
try {
@@ -319,16 +320,16 @@
}
},
{
- 'title': "Mean",
+ 'title': "Mean
",
'type': "natural-minus-na",
- 'width': "110px",
+ 'width': "30px",
'data': "mean",
'orderSequence': [ "desc", "asc"]
},
{
'title': "Authors",
'type': "natural",
- 'width': "500px",
+ 'width': "400px",
'data': null,
'render': function(data, type, row, meta) {
author_list = data.authors.split(",")
@@ -341,10 +342,10 @@
}
},
{
- 'title': "Year",
+ 'title': "Year
",
'type': "natural-minus-na",
'data': null,
- 'width': "80px",
+ 'width': "25px",
'render': function(data, type, row, meta) {
if (data.pubmed_id != "N/A"){
return '' + data.pubmed_text + ''
@@ -355,34 +356,34 @@
'orderSequence': [ "desc", "asc"]
},
{
- 'title': "Peak LOD",
+ 'title': "LOD
",
'type': "natural-minus-na",
'data': "lod_score",
'width': "60px",
'orderSequence': [ "desc", "asc"]
},
{
- 'title': "Peak Location",
+ 'title': "Peak Location
",
'type': "natural-minus-na",
'width': "120px",
'data': "lrs_location"
},
{
- 'title': "Effect Size ",
+ 'title': "Size
",
'type': "natural-minus-na",
- 'width': "120px",
+ 'width': "60px",
'data': "additive",
'orderSequence': [ "desc", "asc"]
}{% elif dataset.type == 'Geno' %},
{
- 'title': "Location",
+ 'title': "Location
",
'type': "natural-minus-na",
'width': "120px",
'data': "location"
}{% endif %}
],
"order": [[1, "asc" ]],
- 'sDom': "itir",
+ 'sDom': "iti",
"autoWidth": true,
"bSortClasses": false,
"scrollY": "100vh",
--
cgit v1.2.3