Show balance on large & medium screens
This commit is contained in:
parent
59c75c9cec
commit
ad8fc035bb
2 changed files with 6 additions and 3 deletions
|
@ -156,7 +156,10 @@ const Header = (props: Props) => {
|
||||||
) : (
|
) : (
|
||||||
<Button
|
<Button
|
||||||
navigate={`/$/${PAGES.WALLET}`}
|
navigate={`/$/${PAGES.WALLET}`}
|
||||||
className="button--file-action header__navigationItem--balance"
|
className={classnames('button--file-action header__navigationItem--balance', {
|
||||||
|
'header__navigationItem--balance-round':
|
||||||
|
hideBalance || Number(roundedTotalBalance) === 0 || !prefsReady,
|
||||||
|
})}
|
||||||
label={
|
label={
|
||||||
hideBalance || Number(roundedTotalBalance) === 0 || !prefsReady
|
hideBalance || Number(roundedTotalBalance) === 0 || !prefsReady
|
||||||
? __(isMobile ? 'Wallet' : 'Your Wallet')
|
? __(isMobile ? 'Wallet' : 'Your Wallet')
|
||||||
|
|
|
@ -35,6 +35,7 @@
|
||||||
|
|
||||||
.header__menu--right {
|
.header__menu--right {
|
||||||
.header__navigationItem--balance {
|
.header__navigationItem--balance {
|
||||||
|
transition: border-radius 0.4s;
|
||||||
.button__label {
|
.button__label {
|
||||||
margin-left: var(--spacing-xxs) !important;
|
margin-left: var(--spacing-xxs) !important;
|
||||||
}
|
}
|
||||||
|
@ -44,8 +45,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.header__navigationItem--balance {
|
.header__navigationItem--balance-round {
|
||||||
transition: border-radius 0.4s;
|
|
||||||
@media (max-width: $breakpoint-large) {
|
@media (max-width: $breakpoint-large) {
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
.button__label {
|
.button__label {
|
||||||
|
|
Loading…
Reference in a new issue