From 6b850030dc2ea5404af7fb777e38b31eef70b273 Mon Sep 17 00:00:00 2001
From: Christian Grothoff <christian@grothoff.org>
Date: Fri, 28 Oct 2022 16:42:52 +0200
Subject: center QR code

---
 packages/demobank-ui/src/components/QR.tsx | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

(limited to 'packages/demobank-ui/src/components/QR.tsx')

diff --git a/packages/demobank-ui/src/components/QR.tsx b/packages/demobank-ui/src/components/QR.tsx
index f154ddebe..198e7b4c6 100644
--- a/packages/demobank-ui/src/components/QR.tsx
+++ b/packages/demobank-ui/src/components/QR.tsx
@@ -40,7 +40,13 @@ export function QR({ text }: { text: string }): VNode {
       }}
     >
       <div
-        style={{ width: "50%", minWidth: 200, maxWidth: 300 }}
+        style={{
+            width: "50%",
+            minWidth: 200,
+            maxWidth: 300,
+            marginRight: "auto",
+            marginLeft: "auto",
+        }}
         ref={divRef}
       />
     </div>
-- 
cgit v1.2.3

