Hide menu button when search is focused (#7373)

* hide menu btn when cancel is shown

* remove useless ts-ignores
This commit is contained in:
Samuel Newman
2025-01-07 22:21:58 +00:00
committed by GitHub
parent f3229d554b
commit f61390fdf4
+2 -10
View File
@@ -3,7 +3,6 @@ import {
ActivityIndicator, ActivityIndicator,
Image, Image,
ImageStyle, ImageStyle,
Platform,
Pressable, Pressable,
StyleProp, StyleProp,
StyleSheet, StyleSheet,
@@ -221,7 +220,6 @@ let SearchScreenPostResults = ({
refreshing={isPTR} refreshing={isPTR}
onRefresh={onPullToRefresh} onRefresh={onPullToRefresh}
onEndReached={onEndReached} onEndReached={onEndReached}
// @ts-ignore web only -prf
desktopFixedHeight desktopFixedHeight
contentContainerStyle={{paddingBottom: 100}} contentContainerStyle={{paddingBottom: 100}}
/> />
@@ -260,7 +258,6 @@ let SearchScreenUserResults = ({
<ProfileCardWithFollowBtn profile={item} noBg /> <ProfileCardWithFollowBtn profile={item} noBg />
)} )}
keyExtractor={item => item.did} keyExtractor={item => item.did}
// @ts-ignore web only -prf
desktopFixedHeight desktopFixedHeight
contentContainerStyle={{paddingBottom: 100}} contentContainerStyle={{paddingBottom: 100}}
/> />
@@ -306,7 +303,6 @@ let SearchScreenFeedsResults = ({
</View> </View>
)} )}
keyExtractor={item => item.uri} keyExtractor={item => item.uri}
// @ts-ignore web only -prf
desktopFixedHeight desktopFixedHeight
contentContainerStyle={{paddingBottom: 100}} contentContainerStyle={{paddingBottom: 100}}
/> />
@@ -556,11 +552,7 @@ let SearchScreenInner = ({
<Explore /> <Explore />
) : ( ) : (
<Layout.Center> <Layout.Center>
<View <View style={web({height: '100vh'})}>
// @ts-ignore web only -esb
style={{
height: Platform.select({web: '100vh'}),
}}>
{isDesktop && ( {isDesktop && (
<Text <Text
type="title" type="title"
@@ -856,7 +848,7 @@ export function SearchScreen(
<Layout.Center> <Layout.Center>
<View style={[a.p_md, a.pb_sm, a.gap_sm, t.atoms.bg]}> <View style={[a.p_md, a.pb_sm, a.gap_sm, t.atoms.bg]}>
<View style={[a.flex_row, a.gap_sm]}> <View style={[a.flex_row, a.gap_sm]}>
{!gtMobile && ( {!gtMobile && !showAutocomplete && (
<Button <Button
testID="viewHeaderBackOrMenuBtn" testID="viewHeaderBackOrMenuBtn"
onPress={onPressMenu} onPress={onPressMenu}