Skip to content

Commit

Permalink
Merge pull request #56299 from bernhardoj/fix/55945-per-diem-amount-i…
Browse files Browse the repository at this point in the history
…s-misaligned

Fix per diem amount is wrapped into multiple lines
  • Loading branch information
luacmartins authored Feb 6, 2025
2 parents 10ee7f4 + 91ef4cd commit 6ea5d42
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions src/pages/workspace/perDiem/WorkspacePerDiemPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,16 +171,26 @@ function WorkspacePerDiemPage({route}: WorkspacePerDiemPageProps) {
rightElement: (
<>
<View style={styles.flex2}>
<Text style={[styles.alignItemsStart, styles.textSupporting, styles.label, styles.pl2]}>{value.subRateName}</Text>
<Text
numberOfLines={1}
style={[styles.alignItemsStart, styles.textSupporting, styles.label, styles.pl2]}
>
{value.subRateName}
</Text>
</View>
<View style={styles.flex1}>
<Text style={[styles.alignSelfEnd, styles.textSupporting, styles.pl2, styles.label]}>{convertAmountToDisplayString(value.rate, value.currency)}</Text>
<View style={styles.flex2}>
<Text
numberOfLines={1}
style={[styles.alignSelfEnd, styles.textSupporting, styles.pl2, styles.label]}
>
{convertAmountToDisplayString(value.rate, value.currency)}
</Text>
</View>
</>
),
};
}),
[allSubRates, selectedPerDiem, canSelectMultiple, styles.flex2, styles.alignItemsStart, styles.textSupporting, styles.label, styles.pl2, styles.flex1, styles.alignSelfEnd],
[allSubRates, selectedPerDiem, canSelectMultiple, styles.flex2, styles.alignItemsStart, styles.textSupporting, styles.label, styles.pl2, styles.alignSelfEnd],
);

const toggleSubRate = (subRate: PolicyOption) => {
Expand Down Expand Up @@ -211,7 +221,7 @@ function WorkspacePerDiemPage({route}: WorkspacePerDiemPageProps) {
<View style={styles.flex2}>
<Text style={[styles.searchInputStyle, styles.alignItemsStart, styles.pl2]}>{translate('common.subrate')}</Text>
</View>
<View style={styles.flex1}>
<View style={styles.flex2}>
<Text style={[styles.searchInputStyle, styles.alignSelfEnd]}>{translate('workspace.perDiem.amount')}</Text>
</View>
</View>
Expand Down

0 comments on commit 6ea5d42

Please sign in to comment.