]> git.proxmox.com Git - pve-docs.git/commitdiff
api-viewer: adapt and add flex for parameter coolumns
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 21 Dec 2017 10:36:37 +0000 (11:36 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 22 Dec 2017 06:58:48 +0000 (07:58 +0100)
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>
api-viewer/PVEAPI.js

index 5d774e97cc11cbbcdc6b57749f9034df84852774..394dda176343d9215fe4ba1956453c57d82bc766 100644 (file)
@@ -154,30 +154,33 @@ Ext.onReady(function() {
                            stripeRows: true
                        },
                        columns: [
-                           { 
+                           {
                                header: 'Name',
-                               dataIndex: 'name'
+                               dataIndex: 'name',
+                               flex: 1
                            },
-                           { 
+                           {
                                header: 'Type',
                                dataIndex: 'type',
                                renderer: render_type,
+                               flex: 1
                            },
                            {
                                header: 'Default',
                                dataIndex: 'default',
+                               flex: 1
                            },
                            {
                                header: 'Format',
                                dataIndex: 'type',
                                renderer: render_format,
-                               flex: 1
+                               flex: 2
                            },
-                           { 
+                           {
                                header: 'Description',
                                dataIndex: 'description',
                                renderer: render_description,
-                               flex: 2
+                               flex: 6
                            }
                        ]
                    });