From e6ba3fab9283074e666499e53453dc7833884424 Mon Sep 17 00:00:00 2001 From: Vasek Mlejnsky Date: Wed, 5 Sep 2018 15:26:14 +0200 Subject: [PATCH] Fix tooltip positioning & size --- src/views/Wallet/views/AccountSend/index.js | 33 ++++++++++++++------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/src/views/Wallet/views/AccountSend/index.js b/src/views/Wallet/views/AccountSend/index.js index 21ae3fae..03a37abb 100644 --- a/src/views/Wallet/views/AccountSend/index.js +++ b/src/views/Wallet/views/AccountSend/index.js @@ -163,6 +163,11 @@ const GreenSpan = styled.span` color: ${colors.GREEN_PRIMARY}; `; +const InputLabelWrapper = styled.div` + display: flex; + align-items: center; +`; + class AccountSend extends Component { constructor(props: Props) { super(props); @@ -322,6 +327,7 @@ class AccountSend extends Component { gasLimitTooltipValue = network.defaultGasLimit.toString(10); } + return ( @@ -459,7 +465,7 @@ class AccountSend extends Component { autoCapitalize="off" spellCheck="false" topLabel={( - + Gas limit { - + )} bottomText={errors.gasLimit ? errors.gasLimit : warnings.gasLimit} value={gasLimit} @@ -492,7 +499,7 @@ class AccountSend extends Component { autoCapitalize="off" spellCheck="false" topLabel={( - + Gas price { - + )} bottomText={errors.gasPrice ? errors.gasPrice : warnings.gasPrice} value={gasPrice} @@ -520,7 +528,7 @@ class AccountSend extends Component { + Data { - + )} disabled={networkSymbol !== currency} value={networkSymbol !== currency ? '' : data} @@ -553,11 +562,13 @@ class AccountSend extends Component { )} - + {this.props.selectedAccount.pending.length > 0 && ( + + )} );