Skip to content

Commit 089545c

Browse files
committed
Fix text styling in RampBankRoutingDetailsScene
Should proably fix in `Paragraph` instead, but keeping this change minimal in scope
1 parent e2188b9 commit 089545c

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

src/components/scenes/RampBankRoutingDetailsScene.tsx

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { SceneContainer } from '../layout/SceneContainer'
1616
import { EdgeRow } from '../rows/EdgeRow'
1717
import { showToast } from '../services/AirshipInstance'
1818
import { cacheStyles, type Theme, useTheme } from '../services/ThemeContext'
19-
import { EdgeText, Paragraph } from '../themed/EdgeText'
19+
import { EdgeText } from '../themed/EdgeText'
2020

2121
export interface BankAddress {
2222
addressLine1: string
@@ -91,9 +91,9 @@ export const RampBankRoutingDetailsScene: React.FC<Props> = props => {
9191
size={theme.rem(2.5)}
9292
color={theme.primaryText}
9393
/>
94-
<Paragraph style={styles.instructionText}>
95-
{lstrings.ramp_bank_routing_instructions}
96-
</Paragraph>
94+
<EdgeText numberOfLines={0} style={styles.instructionText}>
95+
{lstrings.ramp_bank_routing_instructions_1}
96+
</EdgeText>
9797
</View>
9898

9999
<EdgeCard>
@@ -192,8 +192,12 @@ export const RampBankRoutingDetailsScene: React.FC<Props> = props => {
192192
) : null}
193193

194194
<View style={styles.warningTextContainer}>
195-
<EdgeText style={styles.warningText}>
196-
{lstrings.ramp_bank_routing_warning}
195+
<EdgeText
196+
style={styles.warningText}
197+
disableFontScaling
198+
numberOfLines={0}
199+
>
200+
{lstrings.ramp_bank_routing_instructions_2}
197201
</EdgeText>
198202
</View>
199203

@@ -219,7 +223,8 @@ const getStyles = cacheStyles((theme: Theme) => ({
219223
color: theme.iconTappable
220224
},
221225
instructionText: {
222-
flexShrink: 1
226+
flexShrink: 1,
227+
marginLeft: theme.rem(0.5)
223228
},
224229
cardContent: {
225230
padding: theme.rem(0.5)

0 commit comments

Comments
 (0)