Only generate qr code on hover
This commit is contained in:
parent
b12d9137b5
commit
d26cf96c45
@ -67,9 +67,12 @@
|
|||||||
/>
|
/>
|
||||||
</svg></button
|
</svg></button
|
||||||
>
|
>
|
||||||
|
|
||||||
<div class="fixed inline w-48 border bg-white p-4 m-1" id="qr-code" class:invisible={!qrVisible}>
|
<div class="fixed inline w-48 border bg-white p-4 m-1" id="qr-code" class:invisible={!qrVisible}>
|
||||||
{#key data}
|
{#key data}
|
||||||
|
{#if qrVisible}
|
||||||
<QR text={data} />
|
<QR text={data} />
|
||||||
|
{/if}
|
||||||
{/key}
|
{/key}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user