diff options
| author | Adam Soltys <[email protected]> | 2026-02-13 21:08:25 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-02-13 21:08:25 -0800 |
| commit | 8eb6cfb222c6c438374421b4e3918372a66e28b5 (patch) | |
| tree | 10c88e5fc2ef0a729e607feba83b9c42a566b6ea /src/components/InvoiceData.svelte | |
| parent | b4c9562ffb5de676cc6c4bf711c517f524d1e946 (diff) | |
| download | coinos-ui-8eb6cfb222c6c438374421b4e3918372a66e28b5.tar.gz coinos-ui-8eb6cfb222c6c438374421b4e3918372a66e28b5.zip | |
get currency from account
Diffstat (limited to 'src/components/InvoiceData.svelte')
| -rw-r--r-- | src/components/InvoiceData.svelte | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/InvoiceData.svelte b/src/components/InvoiceData.svelte index 84a52308..105eb471 100644 --- a/src/components/InvoiceData.svelte +++ b/src/components/InvoiceData.svelte @@ -19,6 +19,7 @@ }: any = $props(); let loaded = $state(false); + let expanded = $state(false); let { memo } = $derived(invoice); let load = () => (loaded = true); </script> @@ -52,11 +53,11 @@ <button data-testid="invoice-text" - onclick={() => copy(txt)} + onclick={() => { copy(txt); expanded = !expanded; }} aria-label="Copy invoice" class="w-full text-center text-secondary text-xl flex gap-1 items-center justify-center cursor-pointer hover:opacity-70" > - <span class="truncate">{txt}</span> + <span class:truncate={!expanded} class="break-all">{txt}</span> <iconify-icon noobserver icon="ph:copy-bold" width="32" class="shrink-0"></iconify-icon> </button> |
