From: Jaroslav Kysela Date: Wed, 19 Mar 2014 16:37:41 +0000 (+0100) Subject: An attempt to make the default columns widths in idnode grids better X-Git-Tag: v4.1~2196^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F358%2Fhead;p=thirdparty%2Ftvheadend.git An attempt to make the default columns widths in idnode grids better --- diff --git a/src/webui/static/app/chconf.js b/src/webui/static/app/chconf.js index c11951cb2..46bec4837 100644 --- a/src/webui/static/app/chconf.js +++ b/src/webui/static/app/chconf.js @@ -205,6 +205,7 @@ tvheadend.channel_tab = function(panel) tbar : [ mapButton, lowNoButton, noUpButton, noDownButton, noSwapButton ], lcol : [ { + width : 50, header : 'Play', renderer : function (v, o, r) { return "Play"; diff --git a/src/webui/static/app/idnode.js b/src/webui/static/app/idnode.js index 5a8577e33..ffc02906e 100644 --- a/src/webui/static/app/idnode.js +++ b/src/webui/static/app/idnode.js @@ -128,13 +128,20 @@ tvheadend.IdNodeField = function (conf) this.column = function () { + var w = 300; var ftype = 'string'; if (this.type == 'int' || this.type == 'u32' || - this.type == 'u16' || this.type == 'dbl') + this.type == 'u16' || this.type == 'dbl') { ftype = 'numeric'; - else if (this.type == 'bool') - ftype = 'boolean' + w = 80; + } else if (this.type == 'bool') { + ftype = 'boolean'; + w = 60; + } + if (this.enum || this.list) + w = 300; return { + width : w, dataIndex: this.id, header : this.text, sortable : true, diff --git a/src/webui/static/app/mpegts.js b/src/webui/static/app/mpegts.js index ab46c5a83..2113db065 100644 --- a/src/webui/static/app/mpegts.js +++ b/src/webui/static/app/mpegts.js @@ -81,6 +81,7 @@ tvheadend.muxes = function(panel) del : true, lcol : [ { + width : 50, header : 'Play', renderer : function(v, o, r) { return "Play"; @@ -123,6 +124,7 @@ tvheadend.services = function(panel) tbar : [ mapButton ], lcol : [ { + width : 50, header : 'Play', renderer : function(v, o, r) { return "Play";