Skip to content

Commit 9e62c4a

Browse files
author
Nabi
committed
adjust duplicate review radio spacing
1 parent 15742da commit 9e62c4a

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/pages/TransactionDuplicate/DuplicateTransactionItem.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import useCurrentUserPersonalDetails from '@hooks/useCurrentUserPersonalDetails'
1313
import useOnyx from '@hooks/useOnyx';
1414
import useThemeStyles from '@hooks/useThemeStyles';
1515
import {getOriginalMessage, isMoneyRequestAction} from '@libs/ReportActionsUtils';
16+
import variables from '@styles/variables';
1617
import {createTransactionThreadReport} from '@userActions/Report';
1718
import CONST from '@src/CONST';
1819
import ONYXKEYS from '@src/ONYXKEYS';
@@ -90,10 +91,10 @@ function DuplicateTransactionItem({transaction, isLastItem, isSelected, shouldSh
9091
role={getButtonRole(true)}
9192
isNested
9293
hoverStyle={styles.hoveredComponentBG}
93-
style={[!isLastItem && styles.borderBottom, styles.pt4, styles.pb4, styles.pl4, styles.pr4]}
94+
style={[!isLastItem && styles.borderBottom, styles.pt4, styles.pb4, styles.pl4, shouldShowSelection ? styles.pr0 : styles.pr4]}
9495
>
9596
<View style={styles.flexRow}>
96-
<View style={[styles.flex1, shouldShowSelection && styles.mr3]}>
97+
<View style={styles.flex1}>
9798
{!!reportStatusItem && (
9899
<UserInfoAndActionButtonRow
99100
item={reportStatusItem}
@@ -119,13 +120,13 @@ function DuplicateTransactionItem({transaction, isLastItem, isSelected, shouldSh
119120
/>
120121
</View>
121122
{shouldShowSelection && (
122-
<View style={[styles.justifyContentCenter, styles.alignItemsCenter]}>
123+
<View style={[styles.justifyContentCenter, styles.alignItemsCenter, {width: variables.componentSizeMedium}]}>
123124
<RadioButton
124125
isChecked={isSelected}
125126
onPress={() => onSelectTransaction(transaction.transactionID)}
126127
accessibilityLabel={CONST.ROLE.RADIO}
127128
shouldStopMouseDownPropagation
128-
style={[styles.justifyContentCenter, styles.alignItemsCenter]}
129+
style={[styles.justifyContentCenter, {width: variables.componentSizeMedium, height: variables.w44, paddingLeft: 10, paddingRight: 14}]}
129130
/>
130131
</View>
131132
)}

0 commit comments

Comments
 (0)