prevent wallet balance overflow
This commit is contained in:
parent
5de7573362
commit
4b543ae733
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue