diff options
| author | secondl1ght <[email protected]> | 2022-09-17 08:49:48 -0600 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-09-24 09:05:08 -0700 |
| commit | 0a03fc6e5f7025eef53565b20d19d4614733ff42 (patch) | |
| tree | e782088fac8482d8faa4984d7c8dbd18c51377ae /src/components | |
| parent | 01a1bb630e6e29b60a9f20671287913a3993e256 (diff) | |
| download | coinos-ui-0a03fc6e5f7025eef53565b20d19d4614733ff42.tar.gz coinos-ui-0a03fc6e5f7025eef53565b20d19d4614733ff42.zip | |
refactor add tip section to optimize for mobile and other feedback
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/Qr.svelte | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/components/Qr.svelte b/src/components/Qr.svelte index 51616eac..2b37dc9d 100644 --- a/src/components/Qr.svelte +++ b/src/components/Qr.svelte @@ -3,7 +3,7 @@ import { onMount } from 'svelte'; import { copy } from '$lib/utils'; - export let image, text, qr; + export let image, text, qr, disabled; $: update(text); let update = async (text) => { @@ -32,13 +32,18 @@ }; </script> -<div bind:this={qr} on:click={() => copy(text)} /> +<div + bind:this={qr} + on:click={() => { + if (!disabled) copy(text); + }} +/> <style> div { - @apply px-5 - md:px-0 - w-[292px] + @apply px-5 + md:px-0 + w-[292px] h-[302px] md:w-[300px] md:h-[300px] |
