commit 6b850030dc2ea5404af7fb777e38b31eef70b273
parent 1994adc765a56bc461f14622e1c5440d966a01b2
Author: Christian Grothoff <christian@grothoff.org>
Date: Fri, 28 Oct 2022 16:42:52 +0200
center QR code
Diffstat:
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git 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>