Browse Source

Merge pull request #176 from Empact/fix/amount-input-width

Size the PayForm amount input to hold at least 2 chars
renovate/lint-staged-8.x
JimmyMow 7 years ago
committed by GitHub
parent
commit
af0654ff5d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/components/Form/PayForm.js

2
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)}

Loading…
Cancel
Save