Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 6451d92

Browse files
authored
adjust fontsize (#1712)
1 parent d83a7f8 commit 6451d92

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

renderer/src/pages/wallet/BalanceControl.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import Tooltip from 'src/components/Tooltip'
66
import { ReactNode, useState } from 'react'
77
import Transition from 'src/components/Transition'
88
import TransactionStatusIndicator from 'src/components/TransactionStatusIndicator'
9+
import classNames from 'classnames'
910

1011
const TooltipWrapper = ({ children, hasTooltip }: {children: ReactNode; hasTooltip: boolean}) => {
1112
if (!hasTooltip) return children
@@ -90,7 +91,14 @@ const BalanceControl = ({
9091
className='m-auto flex flex-col gap-5 items-center justify-center h-full'
9192
>
9293
<div className='flex flex-col justify-end h-[55%]'>
93-
<Text font="mono" size="xl" bold className="text-slate-50">
94+
<Text
95+
font="mono"
96+
size="xl"
97+
bold
98+
className={classNames('text-slate-50 text-center',
99+
formatFilValue(walletBalance).length > 8 ? 'text-[1.85rem]' : 'text-[2rem]'
100+
)}
101+
>
94102
{formatFilValue(walletBalance)} FIL
95103
</Text>
96104
</div>

0 commit comments

Comments
 (0)