public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Stefan Sterz <s.sterz@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH widget-toolkit 5/5] fix #4610: add a small white padding to the totp qr code
Date: Thu, 23 Mar 2023 16:26:56 +0100	[thread overview]
Message-ID: <20230323152656.1399307-6-s.sterz@proxmox.com> (raw)
In-Reply-To: <20230323152656.1399307-1-s.sterz@proxmox.com>

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 | 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





  parent reply	other threads:[~2023-03-23 15:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-23 15:26 [pve-devel] [PATCH widget-toolkit 0/5] Proxmox Dark Theme Fixups - Round 4 Stefan Sterz
2023-03-23 15:26 ` [pve-devel] [PATCH widget-toolkit 1/5] dark-mode: improve contrast on split buttons Stefan Sterz
2023-03-23 15:26 ` [pve-devel] [PATCH widget-toolkit 2/5] dark-mode: color the custom grid and tree icons Stefan Sterz
2023-03-23 15:26 ` [pve-devel] [PATCH widget-toolkit 3/5] dark-mode: set boundlist background Stefan Sterz
2023-03-23 15:26 ` [pve-devel] [PATCH widget-toolkit 4/5] dark-mode: improve contrast ratios on the mask message Stefan Sterz
2023-03-23 15:26 ` Stefan Sterz [this message]
2023-03-23 16:14 ` [pve-devel] applied-series: [PATCH widget-toolkit 0/5] Proxmox Dark Theme Fixups - Round 4 Thomas Lamprecht

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230323152656.1399307-6-s.sterz@proxmox.com \
    --to=s.sterz@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal