This commit is contained in:
Samuel Newman
2025-01-25 16:49:48 +00:00
parent 74bc54fc65
commit f5047526ea
+20 -9
View File
@@ -537,12 +537,7 @@ let SearchScreenInner = ({
<Pager <Pager
onPageSelected={onPageSelected} onPageSelected={onPageSelected}
renderTabBar={props => ( renderTabBar={props => (
<Layout.Center <Layout.Center style={[a.z_10, web([a.sticky, {top: headerHeight}])]}>
style={[
a.z_10,
web([a.sticky]),
{top: isWeb ? headerHeight : undefined},
]}>
<TabBar items={sections.map(section => section.title)} {...props} /> <TabBar items={sections.map(section => section.title)} {...props} />
</Layout.Center> </Layout.Center>
)} )}
@@ -851,14 +846,13 @@ export function SearchScreen(
if (isWeb) setHeaderHeight(evt.nativeEvent.layout.height) if (isWeb) setHeaderHeight(evt.nativeEvent.layout.height)
}} }}
style={[ style={[
t.atoms.bg,
web({ web({
position: 'sticky', position: 'sticky',
top: 0, top: 0,
zIndex: 1, zIndex: 1,
}), }),
]}> ]}>
<Layout.Center> <Layout.Center style={t.atoms.bg}>
{!gtMobile && !showAutocomplete && ( {!gtMobile && !showAutocomplete && (
<Animated.View <Animated.View
layout={native(FadingTransition)} layout={native(FadingTransition)}
@@ -888,7 +882,7 @@ export function SearchScreen(
</Animated.View> </Animated.View>
)} )}
<Animated.View <Animated.View
style={[a.px_md, a.pt_md, a.pb_sm]} style={[a.px_md, a.pt_md, a.pb_sm, a.gap_sm]}
layout={native(LinearTransition)}> layout={native(LinearTransition)}>
<View style={[a.flex_row, a.gap_sm]}> <View style={[a.flex_row, a.gap_sm]}>
<View style={[a.flex_1]}> <View style={[a.flex_1]}>
@@ -918,6 +912,23 @@ export function SearchScreen(
</Button> </Button>
)} )}
</View> </View>
{showFilters && gtMobile && (
<View
style={[
a.flex_row,
a.align_center,
a.justify_between,
a.gap_sm,
]}>
<View style={[{width: 140}]}>
<SearchLanguageDropdown
value={params.lang}
onChange={params.setLang}
/>
</View>
</View>
)}
</Animated.View> </Animated.View>
</Layout.Center> </Layout.Center>
</View> </View>