From c160730cc4c9a83adf62a2375bc0d2ee7bbf60e1 Mon Sep 17 00:00:00 2001 From: Abdelrahman Khattab Date: Mon, 30 Sep 2024 00:19:04 +0200 Subject: [PATCH] Increase table row and decrease table row gap --- src/components/SelectionList/ChatListItem.tsx | 2 +- src/components/SelectionList/Search/ReportListItem.tsx | 2 +- src/components/SelectionList/Search/TransactionListItem.tsx | 2 +- src/components/SelectionList/TableListItem.tsx | 2 +- src/components/Skeletons/SearchRowSkeleton.tsx | 2 +- src/styles/index.ts | 1 + 6 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/components/SelectionList/ChatListItem.tsx b/src/components/SelectionList/ChatListItem.tsx index 8322c7e1406a..15cf41763843 100644 --- a/src/components/SelectionList/ChatListItem.tsx +++ b/src/components/SelectionList/ChatListItem.tsx @@ -61,7 +61,7 @@ function ChatListItem({ [styles.selectionListPressableItemWrapper, styles.textAlignLeft, item.isSelected && styles.activeComponentBG, isFocused && styles.sidebarLinkActive, item.cursorStyle], ]} wrapperStyle={[styles.flexRow, styles.flex1, styles.justifyContentBetween, styles.userSelectNone]} - containerStyle={styles.mb3} + containerStyle={styles.mb2} isFocused={isFocused} isDisabled={isDisabled} showTooltip={showTooltip} diff --git a/src/components/SelectionList/Search/ReportListItem.tsx b/src/components/SelectionList/Search/ReportListItem.tsx index 2c23c3ede4c5..e8862574a29b 100644 --- a/src/components/SelectionList/Search/ReportListItem.tsx +++ b/src/components/SelectionList/Search/ReportListItem.tsx @@ -126,7 +126,7 @@ function ReportListItem({ item={item} pressableStyle={listItemPressableStyle} wrapperStyle={[styles.flexRow, styles.flex1, styles.justifyContentBetween, styles.userSelectNone, styles.alignItemsCenter]} - containerStyle={[styles.mb3]} + containerStyle={[styles.mb2]} isFocused={isFocused} isDisabled={isDisabled} showTooltip={showTooltip} diff --git a/src/components/SelectionList/Search/TransactionListItem.tsx b/src/components/SelectionList/Search/TransactionListItem.tsx index 5043d6f8f562..3adb7a2599e0 100644 --- a/src/components/SelectionList/Search/TransactionListItem.tsx +++ b/src/components/SelectionList/Search/TransactionListItem.tsx @@ -36,7 +36,7 @@ function TransactionListItem({ item={item} pressableStyle={listItemPressableStyle} wrapperStyle={listItemWrapperStyle} - containerStyle={[styles.mb3]} + containerStyle={[styles.mb2]} isFocused={isFocused} isDisabled={isDisabled} showTooltip={showTooltip} diff --git a/src/components/SelectionList/TableListItem.tsx b/src/components/SelectionList/TableListItem.tsx index ee1ce4672529..e92d8c557a08 100644 --- a/src/components/SelectionList/TableListItem.tsx +++ b/src/components/SelectionList/TableListItem.tsx @@ -46,7 +46,7 @@ function TableListItem({ item={item} pressableStyle={[[styles.selectionListPressableItemWrapper, item.isSelected && styles.activeComponentBG, isFocused && styles.sidebarLinkActive, item.cursorStyle]]} wrapperStyle={[styles.flexRow, styles.flex1, styles.justifyContentBetween, styles.userSelectNone, styles.alignItemsCenter]} - containerStyle={styles.mb3} + containerStyle={styles.mb2} isFocused={isFocused} isDisabled={isDisabled} showTooltip={showTooltip} diff --git a/src/components/Skeletons/SearchRowSkeleton.tsx b/src/components/Skeletons/SearchRowSkeleton.tsx index 55103cad4c6c..0fdf634e21ae 100644 --- a/src/components/Skeletons/SearchRowSkeleton.tsx +++ b/src/components/Skeletons/SearchRowSkeleton.tsx @@ -38,7 +38,7 @@ function SearchRowSkeleton({shouldAnimate = true, fixedNumItems, gradientOpacity return ( marginHorizontal: 20, backgroundColor: theme.highlightBG, borderRadius: 8, + minHeight: variables.optionRowHeight, }, selectionListStickyHeader: {