From 4772b043aea4126c6ef265ea31d5df8ea8d05fdd Mon Sep 17 00:00:00 2001 From: Amirhossein Khalili Date: Fri, 21 Aug 2026 16:04:57 +0800 Subject: [PATCH] fix: keep KPI amounts on one line --- src/lib/components/AnalyticsPage.svelte | 10 ++++++++-- src/lib/components/KpiCard.svelte | 4 +++- src/lib/format.ts | 2 +- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/lib/components/AnalyticsPage.svelte b/src/lib/components/AnalyticsPage.svelte index 873b004..9387fff 100644 --- a/src/lib/components/AnalyticsPage.svelte +++ b/src/lib/components/AnalyticsPage.svelte @@ -139,7 +139,7 @@ {@const peers = run.sections.peerComparison} {#if kind === 'overview' && overview.state === 'READY'} -
+
+
{/if} {/if} + + diff --git a/src/lib/components/KpiCard.svelte b/src/lib/components/KpiCard.svelte index bfe8852..f85af5c 100644 --- a/src/lib/components/KpiCard.svelte +++ b/src/lib/components/KpiCard.svelte @@ -33,7 +33,9 @@
-

{value}

+

+ {value} +

{note}

diff --git a/src/lib/format.ts b/src/lib/format.ts index 8ffc1e8..a75a13a 100644 --- a/src/lib/format.ts +++ b/src/lib/format.ts @@ -11,7 +11,7 @@ export function formatValue(value: number): string { } export function formatMoney(value: number): string { - return `${number.format(value)} ریال`; + return `${number.format(value)}\u00a0ریال`; } export function formatPercent(value: string | null): string {