Skip to content

Commit 12032fd

Browse files
authored
Merge pull request Expensify#76606 from Eskalifer1/fix/76137
fix:76137: correct styles for right arrow in report
2 parents 69e416b + f4221c0 commit 12032fd

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

src/components/MoneyRequestReportView/MoneyRequestReportTransactionItem.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function MoneyRequestReportTransactionItem({
8484
const {translate} = useLocalize();
8585
const styles = useThemeStyles();
8686
// eslint-disable-next-line rulesdir/prefer-shouldUseNarrowLayout-instead-of-isSmallScreenWidth
87-
const {isSmallScreenWidth, isMediumScreenWidth, isLargeScreenWidth, shouldUseNarrowLayout} = useResponsiveLayout();
87+
const {isSmallScreenWidth, isMediumScreenWidth, shouldUseNarrowLayout} = useResponsiveLayout();
8888
const theme = useTheme();
8989
const isPendingDelete = isTransactionPendingDelete(transaction);
9090
const pendingAction = getTransactionPendingAction(transaction);
@@ -151,7 +151,7 @@ function MoneyRequestReportTransactionItem({
151151
columns={columns}
152152
areAllOptionalColumnsHidden={areAllOptionalColumnsHidden}
153153
isDisabled={isPendingDelete}
154-
style={[styles.p3, isLargeScreenWidth && styles.pr0]}
154+
style={[styles.p3]}
155155
onButtonPress={() => {
156156
handleOnPress(transaction.transactionID);
157157
}}

src/components/TransactionItemRow/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ function TransactionItemRow({
556556
{!!isLargeScreenWidth && !!onArrowRightPress && (
557557
<PressableWithFeedback
558558
onPress={() => onArrowRightPress?.()}
559-
style={[styles.p3Half, styles.pl0half, styles.justifyContentCenter, styles.alignItemsEnd]}
559+
style={[styles.p3Half, styles.pl0half, styles.pr0half, styles.justifyContentCenter, styles.alignItemsEnd]}
560560
accessibilityRole={CONST.ROLE.BUTTON}
561561
accessibilityLabel={CONST.ROLE.BUTTON}
562562
>

src/styles/utils/spacing.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,10 @@ export default {
575575
paddingRight: 0,
576576
},
577577

578+
pr0half: {
579+
paddingRight: 2,
580+
},
581+
578582
pr1: {
579583
paddingRight: 4,
580584
},

0 commit comments

Comments
 (0)