Skip to content

Commit 9d4ccec

Browse files
authored
Merge pull request Expensify#74712 from lorretheboy/fix-v3/72636
Android & iOS - Expense - Report subtitle "From #report in workspace" is aligned to the left
2 parents 45f5786 + bfcc774 commit 9d4ccec

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

src/components/ParentNavigationSubtitle.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ function ParentNavigationSubtitle({
155155
</View>
156156
)}
157157
<Text
158-
style={[styles.optionAlternateText, styles.textLabelSupporting, styles.flex1, textStyles]}
158+
style={[styles.optionAlternateText, styles.textLabelSupporting, styles.flexShrink1, styles.mnw0, textStyles]}
159159
numberOfLines={subtitleNumberOfLines}
160160
>
161161
{!!reportName && (

src/pages/ReportDetailsPage.tsx

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -721,14 +721,18 @@ function ReportDetailsPage({policy, report, route, reportMetadata}: ReportDetail
721721
</>
722722
)}
723723
{!isEmptyObject(parentNavigationSubtitleData) && (isMoneyRequestReport || isInvoiceReport || isMoneyRequest || isTaskReport) && (
724-
<ParentNavigationSubtitle
725-
parentNavigationSubtitleData={parentNavigationSubtitleData}
726-
parentReportID={report?.parentReportID}
727-
parentReportActionID={report?.parentReportActionID}
728-
pressableStyles={[styles.mt1, styles.mw100]}
729-
textStyles={[styles.textAlignCenter]}
730-
subtitleNumberOfLines={2}
731-
/>
724+
<View style={[styles.w100, styles.mt1, styles.alignItemsCenter]}>
725+
<View style={styles.mw100}>
726+
<ParentNavigationSubtitle
727+
parentNavigationSubtitleData={parentNavigationSubtitleData}
728+
parentReportID={report?.parentReportID}
729+
parentReportActionID={report?.parentReportActionID}
730+
pressableStyles={[styles.mt1, styles.mw100]}
731+
textStyles={[styles.textAlignCenter]}
732+
subtitleNumberOfLines={2}
733+
/>
734+
</View>
735+
</View>
732736
)}
733737
</View>
734738
);

0 commit comments

Comments
 (0)