center QR code

This commit is contained in:
Christian Grothoff 2022-10-28 16:42:52 +02:00
parent 1994adc765
commit 6b850030dc
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
2 changed files with 8 additions and 2 deletions

@ -1 +1 @@
Subproject commit 355a3172699b96f1040edcb577c07a681802b3ae
Subproject commit 38c168b11eeeab93562ffa74b3e2aff4b596c77a

View File

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