@@ -22,7 +22,7 @@ function WorkspaceCompanyCardExpensifyCardPromotionBanner({policy}: WorkspaceCom
2222 const styles = useThemeStyles ( ) ;
2323 const { translate} = useLocalize ( ) ;
2424 const StyleUtils = useStyleUtils ( ) ;
25- const { shouldUseNarrowLayout} = useResponsiveLayout ( ) ;
25+ const { shouldUseNarrowLayout, isInLandscapeMode } = useResponsiveLayout ( ) ;
2626 const policyID = policy ?. id ;
2727 const areExpensifyCardsEnabled = policy ?. areExpensifyCardsEnabled ;
2828
@@ -42,19 +42,19 @@ function WorkspaceCompanyCardExpensifyCardPromotionBanner({policy}: WorkspaceCom
4242 } , [ policyID , areExpensifyCardsEnabled ] ) ;
4343
4444 const rightComponent = useMemo ( ( ) => {
45- const smallScreenStyle = shouldUseNarrowLayout ? [ styles . flex0 , styles . flexBasis100 , styles . justifyContentCenter ] : [ ] ;
45+ const smallScreenStyle = shouldUseNarrowLayout && ! isInLandscapeMode ? [ styles . flex0 , styles . justifyContentCenter ] : [ ] ;
4646 return (
4747 < View style = { [ styles . flexRow , styles . gap2 , smallScreenStyle ] } >
4848 < Button
4949 success
5050 onPress = { handleLearnMore }
51- style = { shouldUseNarrowLayout && styles . flex1 }
51+ style = { shouldUseNarrowLayout && ! isInLandscapeMode && styles . flex1 }
5252 text = { translate ( 'workspace.moreFeatures.companyCards.expensifyCardBannerLearnMoreButton' ) }
5353 accessibilityLabel = { `${ translate ( 'workspace.moreFeatures.companyCards.expensifyCardBannerLearnMoreButton' ) } , ${ translate ( 'workspace.moreFeatures.companyCards.expensifyCardBannerTitle' ) } ` }
5454 />
5555 </ View >
5656 ) ;
57- } , [ styles , shouldUseNarrowLayout , translate , handleLearnMore ] ) ;
57+ } , [ styles , shouldUseNarrowLayout , isInLandscapeMode , translate , handleLearnMore ] ) ;
5858
5959 return (
6060 < View style = { [ styles . ph4 , styles . mb4 ] } >
0 commit comments