From ad6a034b1acfd95d6bb25d15aeb865e399fe52d0 Mon Sep 17 00:00:00 2001 From: zsloan Date: Fri, 4 Jun 2021 05:46:33 +0000 Subject: Set widths for column in gene global search + set min-width for table as a whole --- wqflask/wqflask/templates/gsearch_gene.html | 33 +++++++++++++++++++---------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/wqflask/wqflask/templates/gsearch_gene.html b/wqflask/wqflask/templates/gsearch_gene.html index 5d2260c1..8ff36c1b 100644 --- a/wqflask/wqflask/templates/gsearch_gene.html +++ b/wqflask/wqflask/templates/gsearch_gene.html @@ -7,7 +7,7 @@ {% block content %} -
Loading... |
@@ -156,9 +156,10 @@
},
'data': trait_list,
'columns': [
- {
- 'data': null,
+ {
'orderDataType': "dom-checkbox",
+ 'width': "25px",
+ 'data': null,
'render': function(data, type, row, meta) {
return ''
}
@@ -166,45 +167,53 @@
{
'title': "Index",
'type': "natural",
+ 'width': "30px",
'data': "index"
},
{
'title': "Record",
'type': "natural",
- 'data': null,
'orderDataType': "dom-inner-text",
+ 'width': "60px",
+ 'data': null,
'render': function(data, type, row, meta) {
return '' + data.name + ''
}
},
{
'title': "Species",
- 'type': "natural",
+ 'type': "natural",
+ 'width': "60px",
'data': "species"
},
{
'title': "Group",
'type': "natural",
+ 'width': "150px",
'data': "group"
},
{
'title': "Tissue",
'type': "natural",
+ 'width': "150px",
'data': "tissue"
},
{
'title': "Dataset",
'type': "natural",
+ 'width': "300px",
'data': "dataset_fullname"
},
{
'title': "Symbol",
'type': "natural",
+ 'width': "60px",
'data': "symbol"
},
{
'title': "Description",
'type': "natural",
+ 'width': "300px",
'data': null,
'render': function(data, type, row, meta) {
try {
@@ -217,25 +226,27 @@
{
'title': "Location",
'type': "natural-minus-na",
- 'width': "100px",
+ 'width': "125px",
'data': "location_repr"
},
{
'title': "Mean",
'type': "natural-minus-na",
- 'data': "mean",
- 'orderSequence': [ "desc", "asc"]
+ 'orderSequence': [ "desc", "asc"],
+ 'width': "30px",
+ 'data': "mean"
},
{
'title': "Max