Skip to content

Commit

Permalink
Merge pull request #50244 from rayane-djouah/Fix-Saved-search-list-is…
Browse files Browse the repository at this point in the history
…-not-scrollable-when-there-is-a-long-list
  • Loading branch information
luacmartins authored Oct 5, 2024
2 parents b9d9686 + 48e49f3 commit 99f280b
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 99f280b

Please sign in to comment.