Skip to content

Commit

Permalink
Fix native text styles, add width to container to handle overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
grgia committed Oct 17, 2023
1 parent c1dbf85 commit d7ab4c4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/EReceipt.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function EReceipt({transaction, transactionID}) {
</View>
<View style={[styles.flexColumn, styles.justifyContentBetween, styles.alignItemsCenter, styles.ph9, styles.flex1]}>
<View style={[styles.alignItemsCenter, styles.alignSelfCenter, styles.flexColumn, styles.gap2, styles.mb8]}>
<View style={[styles.flexRow, styles.justifyContentCenter]}>
<View style={[styles.flexRow, styles.justifyContentCenter, StyleUtils.getWidthStyle(variables.eReceiptTextContainerWidth)]}>
<View style={[styles.flexColumn, styles.pt1]}>
<Text style={[styles.eReceiptCurrency, secondaryTextColorStyle]}>{currency}</Text>
</View>
Expand Down
4 changes: 0 additions & 4 deletions src/styles/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3339,16 +3339,12 @@ const styles = (theme: ThemeDefault) =>
eReceiptAmountLarge: {
...headlineFont,
fontSize: variables.fontSizeEReceiptLarge,
lineHeight: variables.lineHeightXXLarge,
wordBreak: 'break-word',
textAlign: 'center',
},

eReceiptCurrency: {
...headlineFont,
fontSize: variables.fontSizeXXLarge,
lineHeight: variables.lineHeightXXLarge,
wordBreak: 'break-all',
},

eReceiptMerchant: {
Expand Down
1 change: 1 addition & 0 deletions src/styles/variables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ export default {
eReceiptWordmarkWidth: 86,
eReceiptBGHeight: 540,
eReceiptBGHWidth: 335,
eReceiptTextContainerWidth: 263,
reportPreviewMaxWidth: 335,
reportActionImagesSingleImageHeight: 147,
reportActionImagesDoubleImageHeight: 138,
Expand Down

0 comments on commit d7ab4c4

Please sign in to comment.