From 36dbfa6878819c59f6b83e6a20387945f6b04e82 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 13 Feb 2026 12:11:11 -0800 Subject: ui tweaks --- src/app.css | 2 +- src/components/Account.svelte | 4 ++-- src/components/InvoiceActions.svelte | 13 +------------ src/components/InvoiceData.svelte | 14 +++++++------- src/routes/(app)/invoice/[id]/+page.svelte | 2 +- 5 files changed, 12 insertions(+), 23 deletions(-) (limited to 'src') diff --git a/src/app.css b/src/app.css index 168ea02a..7f8e96fd 100644 --- a/src/app.css +++ b/src/app.css @@ -104,7 +104,7 @@ button { cursor: pointer !important; } .btn { - @apply rounded-2xl btn-lg btn-block outline-none h-16 cursor-pointer; + @apply rounded-none btn-lg btn-block outline-none h-16 cursor-pointer; } @layer components { diff --git a/src/components/Account.svelte b/src/components/Account.svelte index f3f85b13..cc11587c 100644 --- a/src/components/Account.svelte +++ b/src/components/Account.svelte @@ -158,7 +158,7 @@
setAccount(e, "/invoice")}> - diff --git a/src/components/InvoiceActions.svelte b/src/components/InvoiceActions.svelte index 356fe18a..53447fec 100644 --- a/src/components/InvoiceActions.svelte +++ b/src/components/InvoiceActions.svelte @@ -66,18 +66,7 @@
- {#if txt?.length > 120} -
- -
- {/if} +
{#if aid === user.id} diff --git a/src/components/InvoiceData.svelte b/src/components/InvoiceData.svelte index 2852e97a..84a52308 100644 --- a/src/components/InvoiceData.svelte +++ b/src/components/InvoiceData.svelte @@ -50,15 +50,15 @@
{/if} -{#if !showQr || txt?.length <= 120} -
copy(txt)} aria-label="Copy invoice" - class="break-all text-center text-secondary text-xl flex gap-1 items-center justify-center" + onclick={() => copy(txt)} + 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" > - {txt} -
-{/if} + {txt} + + {#each invoice.items as i} {@const itemTotal = i.price * i.quantity} diff --git a/src/routes/(app)/invoice/[id]/+page.svelte b/src/routes/(app)/invoice/[id]/+page.svelte index 2810b39c..d8f30fd1 100644 --- a/src/routes/(app)/invoice/[id]/+page.svelte +++ b/src/routes/(app)/invoice/[id]/+page.svelte @@ -141,7 +141,7 @@ let txt = $derived([types.bitcoin, types.liquid].includes(type) ? hash : text); -
+