ui: window/AddTotp: fix spacing styling of form fields

by moving the lower fields into the form itself and dropping the padding

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2021-01-13 12:06:53 +01:00 committed by Thomas Lamprecht
parent a442bd9792
commit b168a27f73

View File

@ -125,7 +125,6 @@ Ext.define('PBS.window.AddTotp', {
reference: 'totp_form', reference: 'totp_form',
fieldDefaults: { fieldDefaults: {
anchor: '100%', anchor: '100%',
padding: '0 5',
}, },
items: [ items: [
{ {
@ -205,8 +204,6 @@ Ext.define('PBS.window.AddTotp', {
value: `Proxmox Backup Server - ${Proxmox.NodeName}`, value: `Proxmox Backup Server - ${Proxmox.NodeName}`,
qrupdate: true, qrupdate: true,
}, },
],
},
{ {
xtype: 'box', xtype: 'box',
itemId: 'qrbox', itemId: 'qrbox',
@ -233,7 +230,6 @@ Ext.define('PBS.window.AddTotp', {
disabled: '{!showTOTPVerifiction}', disabled: '{!showTOTPVerifiction}',
visible: '{showTOTPVerifiction}', visible: '{showTOTPVerifiction}',
}, },
padding: '0 5',
emptyText: gettext('Scan QR code and enter TOTP auth. code to verify'), emptyText: gettext('Scan QR code and enter TOTP auth. code to verify'),
}, },
{ {
@ -245,10 +241,11 @@ Ext.define('PBS.window.AddTotp', {
name: 'password', name: 'password',
allowBlank: false, allowBlank: false,
validateBlank: true, validateBlank: true,
padding: '0 0 5 5',
emptyText: gettext('verify current password'), emptyText: gettext('verify current password'),
}, },
], ],
},
],
initComponent: function() { initComponent: function() {
let me = this; let me = this;