Skip to content

Commit 287202f

Browse files
committed
Simplify spacing around MoneyRequestReportTransactionList
Fixes #61034
1 parent 915834b commit 287202f

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/components/MoneyRequestReportView/MoneyRequestReportActionsList.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ function MoneyRequestReportActionsList({report, policy, reportActions = [], tran
417417
useLayoutEffect(parseFSAttributes, []);
418418

419419
return (
420-
<View style={[styles.flex1]}>
420+
<View style={[styles.flex1, styles.pv4]}>
421421
{shouldUseNarrowLayout && !!selectionMode?.isEnabled && (
422422
<>
423423
<ButtonWithDropdownMenu
@@ -441,7 +441,6 @@ function MoneyRequestReportActionsList({report, policy, reportActions = [], tran
441441
}
442442
}}
443443
/>
444-
445444
<PressableWithFeedback
446445
style={[styles.userSelectNone, styles.alignItemsCenter]}
447446
onPress={() => {
@@ -466,7 +465,6 @@ function MoneyRequestReportActionsList({report, policy, reportActions = [], tran
466465
isActive={isFloatingMessageCounterVisible}
467466
onClick={scrollToBottomAndMarkReportAsRead}
468467
/>
469-
470468
{isEmpty(visibleReportActions) && isEmpty(transactions) ? (
471469
<>
472470
<MoneyRequestViewReportFields

src/components/MoneyRequestReportView/MoneyRequestReportTransactionList.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ function MoneyRequestReportTransactionList({report, transactions, reportActions,
152152
return !isEmpty(transactions) ? (
153153
<>
154154
{!displayNarrowVersion && (
155-
<View style={[styles.dFlex, styles.flexRow, styles.pl5, styles.pr8, styles.pv3, StyleUtils.getPaddingBottom(6), styles.justifyContentCenter, styles.alignItemsCenter]}>
155+
<View style={[styles.dFlex, styles.flexRow, styles.pl5, styles.pr8, StyleUtils.getPaddingBottom(6), styles.justifyContentCenter, styles.alignItemsCenter]}>
156156
<View style={[styles.pv2, styles.pr4, StyleUtils.getPaddingLeft(variables.w12)]}>
157157
<Checkbox
158158
onPress={() => {
@@ -182,8 +182,7 @@ function MoneyRequestReportTransactionList({report, transactions, reportActions,
182182
/>
183183
</View>
184184
)}
185-
186-
<View style={[listHorizontalPadding, styles.gap2, styles.pb4, displayNarrowVersion && !selectionMode?.isEnabled && styles.pt4]}>
185+
<View style={[listHorizontalPadding, styles.gap2, styles.pb4]}>
187186
{sortedTransactions.map((transaction) => {
188187
return (
189188
<PressableWithFeedback

0 commit comments

Comments
 (0)