[pve-devel] [PATCH widget-toolkit] window: addtotp: Increase the size of the quiet zone

Maximiliano Sandoval m.sandoval at proxmox.com
Tue Jun 13 15:32:22 CEST 2023


It is recommended that the quiet zone has the width of 4 blocks, since
each block is around 4 pixels each, we need a margin of 16 pixels and a
size of 256 + 2 * 16 pixels.

Signed-off-by: Maximiliano Sandoval <m.sandoval at proxmox.com>
---
 src/window/AddTotp.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/window/AddTotp.js b/src/window/AddTotp.js
index 53fdaad..ac8f32d 100644
--- a/src/window/AddTotp.js
+++ b/src/window/AddTotp.js
@@ -224,10 +224,10 @@ Ext.define('Proxmox.window.AddTotp', {
 			visible: '{!secretEmpty}',
 		    },
 		    style: {
-			margin: '5px auto',
-			padding: '5px',
-			width: '266px',
-			height: '266px',
+			margin: '16px auto',
+			padding: '16px',
+			width: '288px',
+			height: '288px',
 			'background-color': 'white',
 		    },
 		},
-- 
2.39.2






More information about the pve-devel mailing list