Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix per diem amount is wrapped into multiple lines #56299

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/pages/workspace/perDiem/WorkspacePerDiemPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ function WorkspacePerDiemPage({route}: WorkspacePerDiemPageProps) {
pendingAction: value.pendingAction,
rightElement: (
<>
<View style={styles.flex2}>
<View style={styles.flex1}>
<Text style={[styles.alignItemsStart, styles.textSupporting, styles.label, styles.pl2]}>{value.subRateName}</Text>
</View>
<View style={styles.flex1}>
Expand All @@ -180,7 +180,7 @@ function WorkspacePerDiemPage({route}: WorkspacePerDiemPageProps) {
),
};
}),
[allSubRates, selectedPerDiem, canSelectMultiple, styles.flex2, styles.alignItemsStart, styles.textSupporting, styles.label, styles.pl2, styles.flex1, styles.alignSelfEnd],
[allSubRates, selectedPerDiem, canSelectMultiple, styles.alignItemsStart, styles.textSupporting, styles.label, styles.pl2, styles.flex1, styles.alignSelfEnd],
);

const toggleSubRate = (subRate: PolicyOption) => {
Expand All @@ -205,10 +205,10 @@ function WorkspacePerDiemPage({route}: WorkspacePerDiemPageProps) {

const getCustomListHeader = () => (
<View style={[styles.flex1, styles.flexRow, styles.justifyContentBetween, canSelectMultiple && styles.pl3, !canSelectMultiple && [styles.ph9, styles.pv3, styles.pb5]]}>
<View style={styles.flex3}>
<View style={styles.flex1}>
<Text style={[styles.searchInputStyle, styles.alignSelfStart]}>{translate('common.destination')}</Text>
</View>
<View style={styles.flex2}>
<View style={styles.flex1}>
<Text style={[styles.searchInputStyle, styles.alignItemsStart, styles.pl2]}>{translate('common.subrate')}</Text>
</View>
<View style={styles.flex1}>
Expand Down Expand Up @@ -419,7 +419,7 @@ function WorkspacePerDiemPage({route}: WorkspacePerDiemPageProps) {
customListHeader={getCustomListHeader()}
listHeaderWrapperStyle={[styles.ph9, styles.pv3, styles.pb5]}
listHeaderContent={shouldUseNarrowLayout ? getHeaderText() : null}
listItemTitleContainerStyles={styles.flex3}
listItemTitleContainerStyles={styles.flex1}
showScrollIndicator={false}
/>
)}
Expand Down
Loading