From 7a804d8b01714e9e5058fd38e071f5a24a46611d Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Thu, 3 Nov 2016 16:10:40 +0100 Subject: [PATCH] Fix AddessInput icon position (#3132) --- js/src/ui/Form/InputAddress/inputAddress.css | 10 +++++++++- js/src/ui/Form/InputAddress/inputAddress.js | 4 ++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/js/src/ui/Form/InputAddress/inputAddress.css b/js/src/ui/Form/InputAddress/inputAddress.css index 2783130d6..ff44ba99e 100644 --- a/js/src/ui/Form/InputAddress/inputAddress.css +++ b/js/src/ui/Form/InputAddress/inputAddress.css @@ -26,8 +26,16 @@ padding-left: 0 !important; } -.icon { +.icon, +.iconDisabled { position: absolute; top: 35px; +} + +.icon { + left: 0; +} + +.iconDisabled { left: 24px; } diff --git a/js/src/ui/Form/InputAddress/inputAddress.js b/js/src/ui/Form/InputAddress/inputAddress.js index f2c801edc..0b5562b9a 100644 --- a/js/src/ui/Form/InputAddress/inputAddress.js +++ b/js/src/ui/Form/InputAddress/inputAddress.js @@ -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 ( -
+