Fix AddessInput icon position (#3132)

This commit is contained in:
Jaco Greeff 2016-11-03 16:10:40 +01:00 committed by Gav Wood
parent 5bd9814470
commit 7a804d8b01
2 changed files with 11 additions and 3 deletions

View File

@ -26,8 +26,16 @@
padding-left: 0 !important;
}
.icon {
.icon,
.iconDisabled {
position: absolute;
top: 35px;
}
.icon {
left: 0;
}
.iconDisabled {
left: 24px;
}

View File

@ -69,14 +69,14 @@ class InputAddress extends Component {
}
renderIcon () {
const { value } = this.props;
const { value, disabled } = this.props;
if (!value || !value.length || !util.isAddressValid(value)) {
return null;
}
return (
<div className={ styles.icon }>
<div className={ disabled ? styles.iconDisabled : styles.icon }>
<IdentityIcon
inline center
address={ value } />