From 9c26e7cd8203673a8d0a1de5491f10beddebfcba Mon Sep 17 00:00:00 2001 From: VH Date: Mon, 14 Apr 2025 23:12:29 +0700 Subject: [PATCH 1/7] Fix "Schedule demo" text is misaligned when language set as Spanish --- src/components/Button/index.tsx | 2 +- src/pages/home/HeaderView.tsx | 2 +- src/pages/home/TalkToSalesButton/index.tsx | 2 +- .../CardSection/BillingBanner/EarlyDiscountBanner.tsx | 3 ++- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/Button/index.tsx b/src/components/Button/index.tsx index 1226fbc669d3..7d60be2a6ad9 100644 --- a/src/components/Button/index.tsx +++ b/src/components/Button/index.tsx @@ -317,7 +317,7 @@ function Button( // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing if (icon || shouldShowRightIcon) { return ( - + {!!icon && ( diff --git a/src/pages/home/HeaderView.tsx b/src/pages/home/HeaderView.tsx index 13c05a27db3d..a2831776392e 100644 --- a/src/pages/home/HeaderView.tsx +++ b/src/pages/home/HeaderView.tsx @@ -214,7 +214,7 @@ function HeaderView({report, parentReportAction, onNavigationMenuButtonClicked, onPress={() => { openExternalLink(account?.guideDetails?.calendarLink ?? ''); }} - style={shouldUseNarrowLayout && shouldShowGuideBookingButtonInEarlyDiscountBanner && [styles.flex1]} + style={shouldUseNarrowLayout && shouldShowGuideBookingButtonInEarlyDiscountBanner && [styles.flex1, styles.flexBasisAuto]} icon={CalendarSolid} /> ); diff --git a/src/pages/home/TalkToSalesButton/index.tsx b/src/pages/home/TalkToSalesButton/index.tsx index 80c1d0261ad0..3593ea836745 100644 --- a/src/pages/home/TalkToSalesButton/index.tsx +++ b/src/pages/home/TalkToSalesButton/index.tsx @@ -55,7 +55,7 @@ function TalkToSalesButton({shouldUseNarrowLayout, reportID}: TalkToSalesButtonP initializeOpenAIRealtime(Number(reportID) ?? CONST.DEFAULT_NUMBER_ID, abTestCtaText()); }} - style={shouldUseNarrowLayout && [styles.flex1]} + style={shouldUseNarrowLayout && [styles.flex1, styles.flexBasisAuto]} icon={talkToSalesIcon()} isLoading={talkToAISales?.isLoading} /> diff --git a/src/pages/settings/Subscription/CardSection/BillingBanner/EarlyDiscountBanner.tsx b/src/pages/settings/Subscription/CardSection/BillingBanner/EarlyDiscountBanner.tsx index b18b84365fba..bd5af644acfb 100644 --- a/src/pages/settings/Subscription/CardSection/BillingBanner/EarlyDiscountBanner.tsx +++ b/src/pages/settings/Subscription/CardSection/BillingBanner/EarlyDiscountBanner.tsx @@ -86,7 +86,7 @@ function EarlyDiscountBanner({isSubscriptionPage, GuideBookingButton, TalkToSale {GuideBookingButton}