From 3b5e118a23e8b7a3ce269d9ca794d647bf908499 Mon Sep 17 00:00:00 2001 From: Ben Woosley Date: Wed, 10 Jan 2018 11:47:11 -0800 Subject: [PATCH] fix(amount-input-width): Size the PayForm amount input to hold at least 2 chars Because the "." of "0." is not propagated via the JS, so not in the size of the amount string. --- app/components/Form/PayForm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/Form/PayForm.js b/app/components/Form/PayForm.js index deb766de..0d06364b 100644 --- a/app/components/Form/PayForm.js +++ b/app/components/Form/PayForm.js @@ -66,7 +66,7 @@ class PayForm extends Component { isLn ? { width: '75%', fontSize: '85px' } : - { width: `${amount.length > 1 ? (amount.length * 20) - 5 : 25}%`, fontSize: `${190 - (amount.length ** 2)}px` } + { width: `${amount.length > 1 ? (amount.length * 20) - 5 : 35}%`, fontSize: `${190 - (amount.length ** 2)}px` } } value={currentAmount} onChange={event => setPayAmount(event.target.value)}