aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-03-12 13:33:17 -0700
committerAdam Soltys <[email protected]>2026-03-12 13:33:17 -0700
commit7e0dab611ea6d6a6f764470af9b0c53055e05d74 (patch)
tree14e58d2c97443a6751635a26b0f8f53e2900c72c /src/components
parent2e8898d6f5498d3bcc18a42d75db11460ad8d6d5 (diff)
downloadcoinos-ui-7e0dab611ea6d6a6f764470af9b0c53055e05d74.tar.gz
coinos-ui-7e0dab611ea6d6a6f764470af9b0c53055e05d74.zip
fee ui
Diffstat (limited to 'src/components')
-rw-r--r--src/components/Amount.svelte5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/Amount.svelte b/src/components/Amount.svelte
index 48ac9f08..cdd4b2e8 100644
--- a/src/components/Amount.svelte
+++ b/src/components/Amount.svelte
@@ -11,6 +11,7 @@
rate,
currency,
locked = false,
+ small = false,
}: any = $props();
const canShowFiat = $derived($fiat && rate && currency);
@@ -25,7 +26,7 @@
{#if typeof amount !== "undefined"}
<div>
<h2
- class="text-2xl md:text-3xl font-semibold flex items-end"
+ class="{small ? 'text-base' : 'text-2xl md:text-3xl'} font-semibold flex items-end"
class:justify-center={align !== "left"}
>
<button
@@ -38,7 +39,7 @@
{#if locked}
<PhLockFill width="20" class="text-yellow-300" />
{:else}
- <PhLightningFill width="20" class="text-yellow-300" />
+ <PhLightningFill width={small ? 14 : 20} class="text-yellow-300" />
{/if}
{/if}
<span class:hidden={!canShowFiat}>{f(toFiat(amount, rate), currency, locale)}</span>