prevent wallet balance overflow

This commit is contained in:
keyan 2023-09-12 20:21:59 -05:00
parent 5de7573362
commit 4b543ae733
3 changed files with 7 additions and 3 deletions

View File

@ -136,7 +136,7 @@ function StackerCorner ({ dropNavKey }) {
<NavProfileMenu me={me} dropNavKey={dropNavKey} /> <NavProfileMenu me={me} dropNavKey={dropNavKey} />
<Nav.Item> <Nav.Item>
<Link href='/wallet' passHref legacyBehavior> <Link href='/wallet' passHref legacyBehavior>
<Nav.Link eventKey='wallet' className='text-success px-0 text-nowrap'> <Nav.Link eventKey='wallet' className='text-success text-monospace px-0 text-nowrap'>
<WalletSummary me={me} /> <WalletSummary me={me} />
</Nav.Link> </Nav.Link>
</Link> </Link>

View File

@ -16,9 +16,9 @@ export default function HiddenWalletSummary ({ abbreviate, fixedWidth }) {
return ( return (
<span <span
ref={ref} style={{ width: fixedWidth ? width : undefined }} ref={ref} style={{ width: fixedWidth ? width : undefined }}
className='d-inline-block' align='right' onPointerEnter={() => setHover(true)} onPointerLeave={() => setHover(false)} className='d-inline-block text-monospace' align='right' onPointerEnter={() => setHover(true)} onPointerLeave={() => setHover(false)}
> >
{hover ? (abbreviate ? abbrNum(me.sats) : numWithUnits(me.sats, { abbreviate: false })) : '*****'} {hover ? (abbreviate ? abbrNum(me.sats) : numWithUnits(me.sats, { abbreviate: false })) : '******'}
</span> </span>
) )
} }

View File

@ -150,6 +150,10 @@ $btn-close-bg: none;
} }
} }
.text-monospace {
font-family: monospace;
}
#nprogress .bar { #nprogress .bar {
background: var(--bs-primary) !important; background: var(--bs-primary) !important;
height: 2px !important; height: 2px !important;