[pve-devel] [PATCH manager 1/3] ui: dc/storages: use responsive column width

Thomas Lamprecht t.lamprecht at proxmox.com
Thu Mar 22 16:27:04 CET 2018


Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 www/manager6/dc/StorageView.js | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/www/manager6/dc/StorageView.js b/www/manager6/dc/StorageView.js
index ba6faafb..67fa98d1 100644
--- a/www/manager6/dc/StorageView.js
+++ b/www/manager6/dc/StorageView.js
@@ -222,27 +222,27 @@ Ext.define('PVE.dc.StorageView', {
 	    columns: [
 		{
 		    header: 'ID',
-		    width: 100,
+		    flex: 2,
 		    sortable: true,
 		    dataIndex: 'storage'
 		},
 		{
 		    header: gettext('Type'),
-		    width: 60,
+		    flex: 1,
 		    sortable: true,
 		    dataIndex: 'type',
 		    renderer: PVE.Utils.format_storage_type
 		},
 		{
 		    header: gettext('Content'),
-		    width: 150,
+		    flex: 3,
 		    sortable: true,
 		    dataIndex: 'content',
 		    renderer: PVE.Utils.format_content_types
 		},
 		{
 		    header: gettext('Path') + '/' + gettext('Target'),
-		    flex: 1,
+		    flex: 2,
 		    sortable: true,
 		    dataIndex: 'path',
 		    renderer: function(value, metaData, record) {
@@ -254,14 +254,14 @@ Ext.define('PVE.dc.StorageView', {
 		},
 		{
 		    header: gettext('Shared'),
-		    width: 80,
+		    flex: 1,
 		    sortable: true,
 		    dataIndex: 'shared',
 		    renderer: Proxmox.Utils.format_boolean
 		},
 		{
 		    header: gettext('Enabled'),
-		    width: 80,
+		    flex: 1,
 		    sortable: true,
 		    dataIndex: 'disable',
 		    renderer: Proxmox.Utils.format_neg_boolean
-- 
2.14.2





More information about the pve-devel mailing list