mirror of
https://git.proxmox.com/git/pmg-docs
synced 2025-10-04 21:38:31 +00:00
api-viewer: adapt and add flex for parameter coolumns
Allow to use space better on higher resolutions. Names, Defaults and Types can be read comfortably without the need of resizing the colum width manually each time. Cleanup trailing whithespace in the surrounding area. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
92a42334cd
commit
1a268897fa
@ -156,28 +156,31 @@ Ext.onReady(function() {
|
|||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
header: 'Name',
|
header: 'Name',
|
||||||
dataIndex: 'name'
|
dataIndex: 'name',
|
||||||
|
flex: 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
header: 'Type',
|
header: 'Type',
|
||||||
dataIndex: 'type',
|
dataIndex: 'type',
|
||||||
renderer: render_type,
|
renderer: render_type,
|
||||||
|
flex: 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
header: 'Default',
|
header: 'Default',
|
||||||
dataIndex: 'default',
|
dataIndex: 'default',
|
||||||
|
flex: 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
header: 'Format',
|
header: 'Format',
|
||||||
dataIndex: 'type',
|
dataIndex: 'type',
|
||||||
renderer: render_format,
|
renderer: render_format,
|
||||||
flex: 1
|
flex: 2
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
header: 'Description',
|
header: 'Description',
|
||||||
dataIndex: 'description',
|
dataIndex: 'description',
|
||||||
renderer: render_description,
|
renderer: render_description,
|
||||||
flex: 2
|
flex: 6
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user