Skip to content

Commit dfe0fd7

Browse files
committed
Fix double padding on tweener by using for narrow style override
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
1 parent 40c9d47 commit dfe0fd7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/Search/SearchList/ListItem/TransactionListItem.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function TransactionListItem<TItem extends ListItem>({
6868
const theme = useTheme();
6969
const StyleUtils = useStyleUtils();
7070

71-
const {isLargeScreenWidth, shouldUseNarrowLayout} = useResponsiveLayout();
71+
const {isLargeScreenWidth} = useResponsiveLayout();
7272
const {currentSearchHash, currentSearchKey, currentSearchResults} = useSearchStateContext();
7373
const snapshotReport = (currentSearchResults?.data?.[`${ONYXKEYS.COLLECTION.REPORT}${transactionItem.reportID}`] ?? {}) as Report;
7474

@@ -265,7 +265,7 @@ function TransactionListItem<TItem extends ListItem>({
265265
style={[
266266
styles.p3,
267267
styles.pv2,
268-
shouldUseNarrowLayout && [styles.p0, styles.pt3, isLastItem ? styles.searchTableBottomRadius : styles.noBorderRadius],
268+
!isLargeScreenWidth && [styles.p0, styles.pt3, isLastItem ? styles.searchTableBottomRadius : styles.noBorderRadius],
269269
isLargeScreenWidth && (isLastItem ? styles.searchTableBottomRadius : styles.noBorderRadius),
270270
]}
271271
violations={transactionViolations}

0 commit comments

Comments
 (0)