Skip to content

Commit

Permalink
Merge pull request #1905 from myxmaster/fix_cut_off_text
Browse files Browse the repository at this point in the history
LnurlPay and Send: Fix cut off text
  • Loading branch information
kaloudis authored Dec 18, 2023
2 parents 07db042 + 2aea13d commit ec82f97
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
18 changes: 10 additions & 8 deletions components/AmountInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,16 @@ export default class AmountInput extends React.Component<

return (
<React.Fragment>
<Text
style={{
fontFamily: 'PPNeueMontreal-Book',
color: themeColor('secondaryText')
}}
>
{title}
</Text>
{title && (
<Text
style={{
fontFamily: 'PPNeueMontreal-Book',
color: themeColor('secondaryText')
}}
>
{title}
</Text>
)}
<View style={{ display: 'flex', flexDirection: 'row' }}>
<TextInput
keyboardType="numeric"
Expand Down
3 changes: 1 addition & 2 deletions views/LnurlPay/LnurlPay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ export default class LnurlPay extends React.Component<
)}
</Row>
</View>
<View style={{ marginTop: -20 }}>
<View style={{ marginTop: 0 }}>
<AmountInput
amount={amount}
preventUnitReset={true}
Expand Down Expand Up @@ -356,7 +356,6 @@ const styles = StyleSheet.create({
text: {
fontFamily: 'PPNeueMontreal-Book'
},
textInput: { paddingVertical: 10 },
content: { paddingHorizontal: 20 },
button: { paddingVertical: 15 },
metadata: { padding: 20 }
Expand Down
1 change: 0 additions & 1 deletion views/Send.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,6 @@ export default class Send extends React.Component<SendProps, SendState> {
}}
style={{
flex: 1,
paddingVertical: 10,
paddingHorizontal: 15,
paddingRight: 40
}}
Expand Down

0 comments on commit ec82f97

Please sign in to comment.