aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/Amount.svelte
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-12-05 19:20:36 -0800
committerAdam Soltys <[email protected]>2024-12-05 19:20:36 -0800
commita9b44cbae79e9c01cff07964a45e1c7efa7fb241 (patch)
tree5caa996fc2eca705fb793e79d63bfbf5f9f93e48 /src/components/Amount.svelte
parent6422ef30f14e1baf5d1995de69c777efcad77e32 (diff)
downloadcoinos-ui-a9b44cbae79e9c01cff07964a45e1c7efa7fb241.tar.gz
coinos-ui-a9b44cbae79e9c01cff07964a45e1c7efa7fb241.zip
cached rates
Diffstat (limited to 'src/components/Amount.svelte')
-rw-r--r--src/components/Amount.svelte4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/Amount.svelte b/src/components/Amount.svelte
index 0fd29755..6dad13e0 100644
--- a/src/components/Amount.svelte
+++ b/src/components/Amount.svelte
@@ -25,14 +25,14 @@
{/if}
</h2>
<h3
- class="flex text-secondary md:text-lg cursor-copy"
+ class="flex text-secondary md:text-lg cursor-copy items-center gap-1"
class:justify-center={align !== "left"}
onclick={() => copy(toFiat(amount, rate).toFixed(2))}
>
{f(toFiat(amount, rate), currency, locale)}
{#if tip}
<span class="text-base">
- + {f(toFiat(tip, rate), currency, locale)}
+ +{f(toFiat(tip, rate), currency, locale)}
</span>
{/if}
</h3>