Only generate qr code on hover
This commit is contained in:
parent
b12d9137b5
commit
d26cf96c45
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user