mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-15 21:08:57 +00:00
fix padding when balance is hidden
This commit is contained in:
parent
4f30014050
commit
82e6658278
@ -21,7 +21,7 @@ type State = {
|
||||
};
|
||||
|
||||
const Wrapper = styled.div`
|
||||
padding-bottom: 28px;
|
||||
padding-bottom: ${props => (props.isHidden ? '0px' : '28px')};
|
||||
position: relative;
|
||||
display: flex;
|
||||
|
||||
@ -116,7 +116,7 @@ class AccountBalance extends PureComponent<Props, State> {
|
||||
}
|
||||
|
||||
return (
|
||||
<Wrapper>
|
||||
<Wrapper isHidden={this.state.isHidden}>
|
||||
<HideBalanceIconWrapper
|
||||
onClick={() => this.handleHideBalanceIconClick()}
|
||||
>
|
||||
|
@ -22,7 +22,7 @@ type State = {
|
||||
};
|
||||
|
||||
const Wrapper = styled.div`
|
||||
padding-bottom: 28px;
|
||||
padding-bottom: ${props => (props.isHidden ? '0px' : '28px')};
|
||||
position: relative;
|
||||
display: flex;
|
||||
|
||||
@ -117,7 +117,7 @@ class AccountBalance extends PureComponent<Props, State> {
|
||||
}
|
||||
|
||||
return (
|
||||
<Wrapper>
|
||||
<Wrapper isHidden={this.state.isHidden}>
|
||||
<HideBalanceIconWrapper
|
||||
onClick={() => this.handleHideBalanceIconClick()}
|
||||
>
|
||||
|
Loading…
Reference in New Issue
Block a user