[pve-devel] [PATCH widget-toolkit 5/5] fix #4610: add a small white padding to the totp qr code

Stefan Sterz s.sterz at proxmox.com
Thu Mar 23 16:26:56 CET 2023


some qr code readers need a white "quiet zone" around the main qr
code. otherwise, they won't be able to scan it at all which made it
impossible to scan the totp qr code on certain devices.

Signed-off-by: Stefan Sterz <s.sterz at proxmox.com>
---
 src/window/AddTotp.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/window/AddTotp.js b/src/window/AddTotp.js
index 080b361..53fdaad 100644
--- a/src/window/AddTotp.js
+++ b/src/window/AddTotp.js
@@ -224,11 +224,11 @@ Ext.define('Proxmox.window.AddTotp', {
 			visible: '{!secretEmpty}',
 		    },
 		    style: {
-			'margin-left': 'auto',
-			'margin-right': 'auto',
+			margin: '5px auto',
 			padding: '5px',
 			width: '266px',
 			height: '266px',
+			'background-color': 'white',
 		    },
 		},
 		{
-- 
2.30.2






More information about the pve-devel mailing list