Only generate qr code on hover

This commit is contained in:
Austen Adler 2023-04-27 21:22:17 -04:00
parent b12d9137b5
commit d26cf96c45

View File

@ -67,9 +67,12 @@
/>
</svg></button
>
<div class="fixed inline w-48 border bg-white p-4 m-1" id="qr-code" class:invisible={!qrVisible}>
{#key data}
<QR text={data} />
{#if qrVisible}
<QR text={data} />
{/if}
{/key}
</div>