From 912396072f4c9627e3e4d125c28236775c4811dc Mon Sep 17 00:00:00 2001 From: zsloan Date: Mon, 7 Jun 2021 21:31:39 +0000 Subject: Change padding for checkbox cells + removed set widths for Dataset and Description columns (so they can adjust with the window width) and increased the amount of text displayed --- wqflask/wqflask/templates/gsearch_gene.html | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/wqflask/wqflask/templates/gsearch_gene.html b/wqflask/wqflask/templates/gsearch_gene.html index e951c0b1..5549ac8a 100644 --- a/wqflask/wqflask/templates/gsearch_gene.html +++ b/wqflask/wqflask/templates/gsearch_gene.html @@ -117,26 +117,26 @@ $('.trait_checkbox:checkbox').on("change", change_buttons); }, 'createdRow': function ( row, data, index ) { - $('td', row).eq(0).attr("style", "text-align: center; padding: 4px 10px 2px 10px;"); + $('td', row).eq(0).attr("style", "text-align: center; padding: 0px 10px 2px 13px;"); $('td', row).eq(1).attr("align", "right"); $('td', row).eq(4).attr('title', $('td', row).eq(4).text()); - if ($('td', row).eq(4).text().length > 20) { - $('td', row).eq(4).text($('td', row).eq(4).text().substring(0, 20)); + if ($('td', row).eq(4).text().length > 30) { + $('td', row).eq(4).text($('td', row).eq(4).text().substring(0, 30)); $('td', row).eq(4).text($('td', row).eq(4).text() + '...') } $('td', row).eq(5).attr('title', $('td', row).eq(5).text()); - if ($('td', row).eq(5).text().length > 20) { - $('td', row).eq(5).text($('td', row).eq(5).text().substring(0, 20)); + if ($('td', row).eq(5).text().length > 35) { + $('td', row).eq(5).text($('td', row).eq(5).text().substring(0, 35)); $('td', row).eq(5).text($('td', row).eq(5).text() + '...') } $('td', row).eq(6).attr('title', $('td', row).eq(6).text()); - if ($('td', row).eq(6).text().length > 35) { - $('td', row).eq(6).text($('td', row).eq(6).text().substring(0, 35)); + if ($('td', row).eq(6).text().length > 60) { + $('td', row).eq(6).text($('td', row).eq(6).text().substring(0, 60)); $('td', row).eq(6).text($('td', row).eq(6).text() + '...') } $('td', row).eq(8).attr('title', $('td', row).eq(8).text()); - if ($('td', row).eq(8).text().length > 45) { - $('td', row).eq(8).text($('td', row).eq(8).text().substring(0, 45)); + if ($('td', row).eq(8).text().length > 60) { + $('td', row).eq(8).text($('td', row).eq(8).text().substring(0, 60)); $('td', row).eq(8).text($('td', row).eq(8).text() + '...') } $('td', row).slice(10,14).attr("align", "right"); @@ -201,7 +201,6 @@ { 'title': "Dataset", 'type': "natural", - 'width': "300px", 'data': "dataset_fullname" }, { @@ -213,7 +212,6 @@ { 'title': "Description", 'type': "natural", - 'width': "300px", 'data': null, 'render': function(data, type, row, meta) { try { -- cgit v1.2.3