ui: acl view: make path column flex, but enforce minWidth

with namespaces the paths can get pretty complex, so make the path
column take some flex space too, but not too much to avoid making it
look odd for the short paths we have otherwise

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-05-18 18:22:16 +02:00
parent 33612525e1
commit 5664b41c30
1 changed files with 3 additions and 2 deletions

View File

@ -174,7 +174,8 @@ Ext.define('PBS.config.ACLView', {
columns: [ columns: [
{ {
header: gettext('Path'), header: gettext('Path'),
width: 250, minWidth: 250,
flex: 4,
sortable: true, sortable: true,
renderer: Ext.String.htmlEncode, renderer: Ext.String.htmlEncode,
dataIndex: 'path', dataIndex: 'path',
@ -194,7 +195,7 @@ Ext.define('PBS.config.ACLView', {
}, },
{ {
header: gettext('Propagate'), header: gettext('Propagate'),
flex: 1, // last element flex looks better flex: 9, // last element flex looks better
sortable: true, sortable: true,
renderer: Proxmox.Utils.format_boolean, renderer: Proxmox.Utils.format_boolean,
dataIndex: 'propagate', dataIndex: 'propagate',