ui: FW/Alias: make grid flex

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-01-22 12:40:15 +01:00
parent 09b3292ec6
commit c10fabfe26

View File

@ -166,9 +166,22 @@ Ext.define('PVE.FirewallAliases', {
tbar: [ me.addBtn, me.removeBtn, me.editBtn ],
selModel: sm,
columns: [
{ header: gettext('Name'), dataIndex: 'name', width: 100 },
{ header: gettext('IP/CIDR'), dataIndex: 'cidr', width: 100 },
{ header: gettext('Comment'), dataIndex: 'comment', renderer: Ext.String.htmlEncode, flex: 1 }
{
header: gettext('Name'),
dataIndex: 'name',
flex: 1,
},
{
header: gettext('IP/CIDR'),
dataIndex: 'cidr',
flex: 1,
},
{
header: gettext('Comment'),
dataIndex: 'comment',
renderer: Ext.String.htmlEncode,
flex: 3,
}
],
listeners: {
itemdblclick: run_editor