From 9a08bd8a276261fd20442afd15bf55b0c0e400fb Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 4 Sep 2019 15:14:06 +0200 Subject: [PATCH] browser settings: move reset layout button to same row as label diff best viewed with git diff -w Signed-off-by: Thomas Lamprecht --- www/manager6/window/Settings.js | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/www/manager6/window/Settings.js b/www/manager6/window/Settings.js index 0adb56d8..6cef4c38 100644 --- a/www/manager6/window/Settings.js +++ b/www/manager6/window/Settings.js @@ -239,18 +239,27 @@ Ext.define('PVE.window.Settings', { autoEl: { tag: 'hr'} }, { - xtype: 'displayfield', - fieldLabel: gettext('Layout'), - labelAlign: 'left', - labelWidth: '50%' - }, - { - xtype: 'button', - cls: 'x-btn-default-toolbar-small proxmox-inline-button', - text: gettext('Reset Layout'), - width: 'auto', - tooltip: gettext('Reset all layout changes (for example, column widths)'), - name: 'reset' + xtype: 'panel', + border: false, + layout: { + type: 'hbox', + align: 'stretch' + }, + items: [ + { + xtype: 'displayfield', + fieldLabel: gettext('Layout'), + flex: 2, + }, + { + xtype: 'button', + cls: 'x-btn-default-toolbar-small proxmox-inline-button', + text: gettext('Reset Layout'), + tooltip: gettext('Reset all layout changes (for example, column widths)'), + name: 'reset', + flex: 1, + }, + ] }, ] },{ -- 2.39.5