1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-15 21:08:57 +00:00

Fix issue when "Advanced settings" caused the form to move down

This commit is contained in:
Vasek Mlejnsky 2018-09-21 08:06:52 +02:00
parent 0acc7196b8
commit c2fc48252d

View File

@ -113,13 +113,16 @@ const StyledLink = styled(Link)`
`;
const ToggleAdvancedSettingsWrapper = styled.div`
min-height: 40px;
margin-bottom: 20px;
display: flex;
flex-direction: row;
justify-content: space-between;
@media screen and (max-width: ${SmallScreenWidth}) {
flex-direction: column;
${props => (props.isAdvancedSettingsHidden && css`
flex-direction: column;
`)}
}
`;
@ -441,7 +444,9 @@ class AccountSend extends Component<Props, State> {
/>
</InputRow>
<ToggleAdvancedSettingsWrapper>
<ToggleAdvancedSettingsWrapper
isAdvancedSettingsHidden={this.state.isAdvancedSettingsHidden}
>
<ToggleAdvancedSettingsButton
isTransparent
onClick={() => this.handleToggleAdvancedSettingsButton()}