Skip to content

Commit 5df6e58

Browse files
authored
fix: font styles (#1157)
Fixes various font styles on wallet & transaction list
2 parents cc3e81d + 9382c1e commit 5df6e58

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

frontend/src/components/TransactionItem.tsx

+11-8
Original file line numberDiff line numberDiff line change
@@ -152,24 +152,27 @@ function TransactionItem({ tx }: Props) {
152152
</div>
153153
<div className="flex ml-auto space-x-3 shrink-0">
154154
<div className="flex flex-col items-end md:text-xl">
155-
<div className="flex gap-2">
155+
<div className="flex flex-row gap-1">
156156
<p
157157
className={cn(
158-
"font-semibold",
159158
type == "incoming" && "text-green-600 dark:text-emerald-500"
160159
)}
161160
>
162161
{type == "outgoing" ? "-" : "+"}
163-
{new Intl.NumberFormat().format(
164-
Math.floor(tx.amount / 1000)
165-
)}{" "}
162+
<span className="font-medium">
163+
{new Intl.NumberFormat().format(
164+
Math.floor(tx.amount / 1000)
165+
)}
166+
</span>
166167
</p>
167-
<p className="text-foreground">
168+
<p className="text-muted-foreground">
168169
{Math.floor(tx.amount / 1000) == 1 ? "sat" : "sats"}
169170
</p>
170171
</div>
171-
172-
<FormattedFiatAmount amount={Math.floor(tx.amount / 1000)} />
172+
<FormattedFiatAmount
173+
className="text-xs md:text-base"
174+
amount={Math.floor(tx.amount / 1000)}
175+
/>
173176
</div>
174177
</div>
175178
</div>

frontend/src/screens/wallet/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,14 @@ function Wallet() {
8181
<BreezRedeem />
8282
<div className="flex flex-col xl:flex-row justify-between xl:items-center gap-5">
8383
<div className="flex flex-col gap-1 text-center xl:text-left">
84-
<div className="text-5xl font-semibold balance sensitive slashed-zero">
84+
<div className="text-5xl font-medium balance sensitive slashed-zero">
8585
{new Intl.NumberFormat().format(
8686
Math.floor(balances.lightning.totalSpendable / 1000)
8787
)}{" "}
8888
sats
8989
</div>
9090
<FormattedFiatAmount
91-
className="text-xl font-semibold"
91+
className="text-xl"
9292
amount={balances.lightning.totalSpendable / 1000}
9393
/>
9494
</div>

0 commit comments

Comments
 (0)