1
0
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:
slowbackspace 2019-01-24 23:37:31 +01:00
parent 4f30014050
commit 82e6658278
2 changed files with 4 additions and 4 deletions

View File

@ -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()}
>

View File

@ -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()}
>