Skip to content

Commit

Permalink
fix style bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
SzymczakJ committed Oct 14, 2024
1 parent 3cd9405 commit 1d0811f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/Search/SearchRouter/SearchRouterInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function SearchRouterInput({
disabled={disabled}
onSubmitEditing={onSubmit}
shouldUseDisabledStyles={false}
textInputContainerStyles={styles.borderNone}
textInputContainerStyles={[styles.borderNone, styles.pb0]}
inputStyle={[styles.searchInputStyle, inputWidth, styles.pl3, styles.pr3]}
onFocus={() => {
setIsFocused(true);
Expand Down
4 changes: 2 additions & 2 deletions src/components/Search/SearchRouter/SearchRouterList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ function SearchRouterItem(props: UserListItemProps<OptionData> | SearchQueryList
return (
<UserListItem
pressableStyle={[styles.br2]}
wrapperStyle={[styles.pr3, styles.pl3]}
// eslint-disable-next-line react/jsx-props-no-spreading
{...props}
/>
Expand Down Expand Up @@ -145,7 +144,7 @@ function SearchRouterList(
sections.push({title: translate('search.recentSearches'), data: recentSearchesData});
}

const styledRecentReports = recentReports.map((item) => ({...item, pressableStyle: styles.br2}));
const styledRecentReports = recentReports.map((item) => ({...item, pressableStyle: styles.br2, wrapperStyle: [styles.pr3, styles.pl3]}));
sections.push({title: translate('search.recentChats'), data: styledRecentReports});

const onSelectRow = useCallback(
Expand Down Expand Up @@ -182,6 +181,7 @@ function SearchRouterList(
ListItem={SearchRouterItem}
containerStyle={[styles.mh100]}
sectionListStyle={[isSmallScreenWidth ? styles.ph5 : styles.ph2, styles.pb2]}
listItemWrapperStyle={[styles.pr3, styles.pl3]}
onLayout={setPerformanceTimersEnd}
ref={ref}
showScrollIndicator={!isSmallScreenWidth}
Expand Down

0 comments on commit 1d0811f

Please sign in to comment.