Skip to content

Commit f4221c0

Browse files
committed
fix:76137: correct styles for right arrow in report
1 parent e8ff441 commit f4221c0

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
@@ -86,7 +86,7 @@ function MoneyRequestReportTransactionItem({
8686
const {translate} = useLocalize();
8787
const styles = useThemeStyles();
8888
// eslint-disable-next-line rulesdir/prefer-shouldUseNarrowLayout-instead-of-isSmallScreenWidth
89-
const {isSmallScreenWidth, isMediumScreenWidth, isLargeScreenWidth, shouldUseNarrowLayout} = useResponsiveLayout();
89+
const {isSmallScreenWidth, isMediumScreenWidth, shouldUseNarrowLayout} = useResponsiveLayout();
9090
const theme = useTheme();
9191
const isPendingDelete = isTransactionPendingDelete(transaction);
9292
const pendingAction = getTransactionPendingAction(transaction);
@@ -154,7 +154,7 @@ function MoneyRequestReportTransactionItem({
154154
columns={columns}
155155
areAllOptionalColumnsHidden={areAllOptionalColumnsHidden}
156156
isDisabled={isPendingDelete}
157-
style={[styles.p3, isLargeScreenWidth && styles.pr0]}
157+
style={[styles.p3]}
158158
onButtonPress={() => {
159159
handleOnPress(transaction.transactionID);
160160
}}

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)