[pve-devel] [PATCH manager v3 1/5] FileSelector: adapt combogrid total and column width

Thomas Lamprecht t.lamprecht at proxmox.com
Tue Jul 25 16:26:56 CEST 2017


By default the "Size" column ellipsed a lot entries, which is just
annoying. Adapt it so that all sizes can be viewed comfortably.

Further increase the total width of this combogrid, a lot less could
be seen there since theme change from the 4.X era.
Use an new empirical found out good  working value.

Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---

changes v2: v3:
* none

 www/manager6/form/FileSelector.js | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/www/manager6/form/FileSelector.js b/www/manager6/form/FileSelector.js
index a0fc4bb2..6dcc24f0 100644
--- a/www/manager6/form/FileSelector.js
+++ b/www/manager6/form/FileSelector.js
@@ -47,6 +47,7 @@ Ext.define('PVE.form.FileSelector', {
 	    valueField: 'volid',
 	    displayField: 'text',
             listConfig: {
+		width: 600,
 		columns: [
 		    {
 			header: gettext('Name'),
@@ -56,14 +57,14 @@ Ext.define('PVE.form.FileSelector', {
 		    },
 		    {
 			header: gettext('Format'),
-			width: 60, 
+			width: 60,
 			dataIndex: 'format'
 		    },
 		    {
 			header: gettext('Size'),
-			width: 60, 
-			dataIndex: 'size', 
-			renderer: PVE.Utils.format_size 
+			width: 100,
+			dataIndex: 'size',
+			renderer: PVE.Utils.format_size
 		    }
 		]
 	    }
-- 
2.11.0





More information about the pve-devel mailing list