diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-10-28 16:42:52 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-10-28 16:42:52 +0200 |
commit | 6b850030dc2ea5404af7fb777e38b31eef70b273 (patch) | |
tree | 29e6e20062c7d2c75c8f6f54f20618e4e0961262 /packages/demobank-ui | |
parent | 1994adc765a56bc461f14622e1c5440d966a01b2 (diff) |
center QR code
Diffstat (limited to 'packages/demobank-ui')
-rw-r--r-- | packages/demobank-ui/src/components/QR.tsx | 8 |
1 files changed, 7 insertions, 1 deletions
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> |