diff --git a/src/components/MenuItem.tsx b/src/components/MenuItem.tsx index 76fc7aee2d9b0..7440f7de9f5a3 100644 --- a/src/components/MenuItem.tsx +++ b/src/components/MenuItem.tsx @@ -248,6 +248,9 @@ type MenuItemBaseProps = ForwardedFSClassProps & /** A right-aligned subtitle for this menu option */ subtitle?: string | number; + /** Any additional styles to apply to the subtitle */ + subtitleStyle?: StyleProp; + /** Should the title show with normal font weight (not bold) */ shouldShowBasicTitle?: boolean; @@ -526,6 +529,7 @@ function MenuItem({ titleComponent, titleContainerStyle, subtitle, + subtitleStyle, shouldShowBasicTitle, rightLabelIcon, label, @@ -1068,7 +1072,7 @@ function MenuItem({ {/* Since subtitle can be of type number, we should allow 0 to be shown */} {(subtitle === 0 || !!subtitle) && ( - {subtitle} + {subtitle} )} {(!!rightIconAccountID || !!rightIconReportID) && ( @@ -1090,7 +1094,7 @@ function MenuItem({ )} {!!brickRoadIndicator && ( - + @@ -61,8 +61,8 @@ function PrevNextButtons({isPrevButtonDisabled, isNextButtonDisabled, onNext, on diff --git a/src/components/ReportActionItem/MoneyRequestReportPreview/MoneyRequestReportPreviewContent.tsx b/src/components/ReportActionItem/MoneyRequestReportPreview/MoneyRequestReportPreviewContent.tsx index e334959ef39ee..eaf726473d470 100644 --- a/src/components/ReportActionItem/MoneyRequestReportPreview/MoneyRequestReportPreviewContent.tsx +++ b/src/components/ReportActionItem/MoneyRequestReportPreview/MoneyRequestReportPreviewContent.tsx @@ -604,8 +604,8 @@ function MoneyRequestReportPreviewContent({ diff --git a/src/components/ReportActionItem/MoneyRequestView.tsx b/src/components/ReportActionItem/MoneyRequestView.tsx index 501dab08178f6..4412176d8918b 100644 --- a/src/components/ReportActionItem/MoneyRequestView.tsx +++ b/src/components/ReportActionItem/MoneyRequestView.tsx @@ -1147,7 +1147,7 @@ function MoneyRequestView({ {shouldShowReimbursable && ( ; subtitle?: number; shouldShowRightIcon?: boolean; + subtitleStyle?: StyleProp; }; type ReportDetailsPageProps = WithReportOrNotFoundProps & PlatformStackScreenProps; @@ -409,6 +411,7 @@ function ReportDetailsPage({policy, report, route, reportMetadata}: ReportDetail translationKey: 'common.members', icon: expensifyIcons.Users, subtitle: activeChatMembers.length, + subtitleStyle: [styles.ph2], isAnonymousAction: false, shouldShowRightIcon: true, action: () => { @@ -642,6 +645,7 @@ function ReportDetailsPage({policy, report, route, reportMetadata}: ReportDetail amountOwed, ownerBillingGracePeriodEnd, iouTransaction, + styles.ph2, ]); const displayNamesWithTooltips = useMemo(() => { @@ -1108,6 +1112,7 @@ function ReportDetailsPage({policy, report, route, reportMetadata}: ReportDetail isAnonymousAction={item.isAnonymousAction} shouldShowRightIcon={item.shouldShowRightIcon} brickRoadIndicator={item.brickRoadIndicator} + subtitleStyle={item.subtitleStyle} /> ))} diff --git a/src/styles/index.ts b/src/styles/index.ts index 68633f5a5418b..a4d569e0a76bd 100644 --- a/src/styles/index.ts +++ b/src/styles/index.ts @@ -940,6 +940,10 @@ const staticStyles = (theme: ThemeColors) => height: variables.componentSizeXSmall, }, + threeDotsMenuIconWidth: { + width: variables.componentSizeXSmall, + }, + touchableButtonImage: { alignItems: 'center', height: variables.componentSizeNormal,