File tree Expand file tree Collapse file tree
src/components/MoneyRequestReportView Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -73,6 +73,9 @@ type MoneyRequestReportTransactionItemProps = {
7373
7474 /** Whether this is the last item in the list */
7575 isLastItem ?: boolean ;
76+
77+ /** Whether the list is horizontally scrollable */
78+ shouldScrollHorizontally ?: boolean ;
7679} ;
7780
7881function MoneyRequestReportTransactionItem ( {
@@ -93,6 +96,7 @@ function MoneyRequestReportTransactionItem({
9396 shouldBeHighlighted,
9497 nonPersonalAndWorkspaceCards,
9598 isLastItem = false ,
99+ shouldScrollHorizontally = false ,
96100} : MoneyRequestReportTransactionItemProps ) {
97101 const { translate} = useLocalize ( ) ;
98102 const styles = useThemeStyles ( ) ;
@@ -164,7 +168,7 @@ function MoneyRequestReportTransactionItem({
164168 amountColumnSize = { amountColumnSize }
165169 taxAmountColumnSize = { taxAmountColumnSize }
166170 shouldShowTooltip
167- shouldUseNarrowLayout = { shouldUseNarrowLayout || isMediumScreenWidth }
171+ shouldUseNarrowLayout = { shouldUseNarrowLayout || ( isMediumScreenWidth && ! shouldScrollHorizontally ) }
168172 shouldShowCheckbox = { ! ! isSelectionModeEnabled || ! isSmallScreenWidth }
169173 onCheckboxPress = { toggleTransaction }
170174 columns = { columns }
Original file line number Diff line number Diff line change @@ -593,6 +593,7 @@ function MoneyRequestReportTransactionList({
593593 onArrowRightPress = { handleArrowRightPress }
594594 nonPersonalAndWorkspaceCards = { nonPersonalAndWorkspaceCards ?? { } }
595595 isLastItem = { ! showPendingExpensePlaceholder && transaction . transactionID === lastTransactionID }
596+ shouldScrollHorizontally = { shouldScrollHorizontally }
596597 />
597598 ) ;
598599
You can’t perform that action at this time.
0 commit comments