Skip to content

Commit

Permalink
Fix: Saved search - Saved search list is not scrollable when there is…
Browse files Browse the repository at this point in the history
… a long list
  • Loading branch information
rayane-djouah committed Oct 4, 2024
1 parent 3c91e07 commit 48e49f3
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions src/pages/Search/SearchPageBottomTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,12 @@ function SearchPageBottomTab() {
isCustomSearchQuery={shouldUseNarrowLayout && !SearchUtils.isCannedSearchQuery(queryJSON)}
/>
</View>
<Animated.View style={[styles.searchTopBarStyle, topBarAnimatedStyle]}>
<SearchTypeMenu
queryJSON={queryJSON}
searchName={searchName}
/>
{shouldUseNarrowLayout && (
{shouldUseNarrowLayout ? (
<Animated.View style={[styles.searchTopBarStyle, topBarAnimatedStyle]}>
<SearchTypeMenu
queryJSON={queryJSON}
searchName={searchName}
/>
<SearchStatusBar
type={queryJSON.type}
status={queryJSON.status}
Expand All @@ -116,8 +116,13 @@ function SearchPageBottomTab() {
topBarOffset.value = withTiming(variables.searchHeaderHeight, {duration: ANIMATION_DURATION_IN_MS});
}}
/>
)}
</Animated.View>
</Animated.View>
) : (
<SearchTypeMenu
queryJSON={queryJSON}
searchName={searchName}
/>
)}
</>
) : (
<SearchSelectionModeHeader queryJSON={queryJSON} />
Expand Down

0 comments on commit 48e49f3

Please sign in to comment.