@@ -7,6 +7,7 @@ import type {LayoutChangeEvent} from 'react-native';
77import type { OnyxEntry } from 'react-native-onyx' ;
88import type { ValueOf } from 'type-fest' ;
99import { useCurrencyListActions } from '@hooks/useCurrencyList' ;
10+ import useIsInLandscapeMode from '@hooks/useIsInLandscapeMode' ;
1011import { useMemoizedLazyExpensifyIcons } from '@hooks/useLazyAsset' ;
1112import useLocalize from '@hooks/useLocalize' ;
1213import useLocalReceiptThumbnail from '@hooks/useLocalReceiptThumbnail' ;
@@ -345,6 +346,7 @@ function MoneyRequestConfirmationListFooter({
345346 const { translate, toLocaleDigit, localeCompare, preferredLocale} = useLocalize ( ) ;
346347 const { getCurrencySymbol, getCurrencyDecimals} = useCurrencyListActions ( ) ;
347348 const { isOffline} = useNetwork ( ) ;
349+ const isInLandscapeMode = useIsInLandscapeMode ( ) ;
348350 const { windowWidth} = useWindowDimensions ( ) ;
349351
350352 const { isBetaEnabled} = usePermissions ( ) ;
@@ -1319,7 +1321,7 @@ function MoneyRequestConfirmationListFooter({
13191321 return badges ;
13201322 } , [ firstDay , lastDay , translate , tripDays , icons ] ) ;
13211323
1322- const isCompactMode = useMemo ( ( ) => ! showMoreFields && isScan , [ isScan , showMoreFields ] ) ;
1324+ const isCompactMode = useMemo ( ( ) => ! showMoreFields && isScan && ! isInLandscapeMode , [ isScan , showMoreFields , isInLandscapeMode ] ) ;
13231325 const [ receiptAspectRatio , setReceiptAspectRatio ] = useState < number | null > ( null ) ;
13241326 const [ compactReceiptContainerWidth , setCompactReceiptContainerWidth ] = useState ( 0 ) ;
13251327 const hasEndedReceiptLoadSpan = useRef ( false ) ;
0 commit comments