From 745aeaacdde9cffb41f1571d2fd3efea30777f0d Mon Sep 17 00:00:00 2001 From: Stefan Sterz Date: Thu, 23 Mar 2023 16:26:56 +0100 Subject: [PATCH] fix #4610: add a small white padding to the totp qr code 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 --- 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.39.5