diff options
| author | Adam Soltys <[email protected]> | 2026-03-03 14:58:29 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-03-03 14:58:29 -0800 |
| commit | b70a8665915e5c393d5d86216673cc60a4418171 (patch) | |
| tree | 5e48f821772195bcaab8879f59a37dee29230105 /src/components | |
| parent | 6e6e8a4e8a745ed9d4cf81a4771b71ac4a06dc90 (diff) | |
| download | coinos-ui-b70a8665915e5c393d5d86216673cc60a4418171.tar.gz coinos-ui-b70a8665915e5c393d5d86216673cc60a4418171.zip | |
qr fix
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/InvoiceData.svelte | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/components/InvoiceData.svelte b/src/components/InvoiceData.svelte index 3129dfb5..b0891180 100644 --- a/src/components/InvoiceData.svelte +++ b/src/components/InvoiceData.svelte @@ -25,8 +25,15 @@ let qrSrc = $derived(`/qr/${encodeURIComponent(invoice.text)}/raw`); let visibleSrc = $state(""); + let first = true; + $effect(() => { const next = qrSrc; + if (first) { + first = false; + visibleSrc = next; + return; + } const img = new Image(); img.onload = () => (visibleSrc = next); img.src = next; @@ -34,7 +41,7 @@ </script> {#if showQr} - <div class="max-w-[280px] mx-auto min-h-[280px]"> + <div class="max-w-[280px] w-full mx-auto min-h-[280px]"> <a href={link}> <img src={visibleSrc} |
