mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-28 03:08:30 +00:00
Fix icon margin in input
This commit is contained in:
parent
7d4ca8eeed
commit
ba5996e3cf
@ -34,7 +34,7 @@ const TopLabel = styled.span`
|
|||||||
|
|
||||||
const StyledInput = styled.input`
|
const StyledInput = styled.input`
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 6px ${props => (props.hasIcon ? '40px' : '12px')} 6px 12px;
|
padding: 6px ${props => (props.hasIcon ? '32px' : '12px')} 6px 12px;
|
||||||
|
|
||||||
line-height: 1.42857143;
|
line-height: 1.42857143;
|
||||||
font-size: ${FONT_SIZE.SMALL};
|
font-size: ${FONT_SIZE.SMALL};
|
||||||
@ -61,7 +61,7 @@ const StyledInput = styled.input`
|
|||||||
const StyledIcon = styled(Icon)`
|
const StyledIcon = styled(Icon)`
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: auto;
|
left: auto;
|
||||||
right: 10px;
|
right: 3px;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const BottomText = styled.span`
|
const BottomText = styled.span`
|
||||||
@ -112,7 +112,7 @@ class Input extends Component {
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<StyledInput
|
<StyledInput
|
||||||
hasIcon={!!this.props.state}
|
hasIcon={this.getIcon(this.props.state).length > 0}
|
||||||
innerRef={this.props.innerRef}
|
innerRef={this.props.innerRef}
|
||||||
hasAddon={!!this.props.sideAddons}
|
hasAddon={!!this.props.sideAddons}
|
||||||
type={this.props.type}
|
type={this.props.type}
|
||||||
|
Loading…
Reference in New Issue
Block a user