]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
fix #4610: add a small white padding to the totp qr code
authorStefan Sterz <s.sterz@proxmox.com>
Thu, 23 Mar 2023 15:26:56 +0000 (16:26 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 23 Mar 2023 16:12:12 +0000 (17:12 +0100)
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@proxmox.com>
src/window/AddTotp.js

index 080b361fc998897d48081979d2fabd6a39392055..53fdaadcc11516bebb5b671b9f69ddeed2c423d0 100644 (file)
@@ -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',
                    },
                },
                {