Skip to content

Commit

Permalink
Hide menu button when search is focused (#7373)
Browse files Browse the repository at this point in the history
* hide menu btn when cancel is shown

* remove useless ts-ignores
  • Loading branch information
mozzius authored Jan 7, 2025
1 parent f3229d5 commit f61390f
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/view/screens/Search/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {
ActivityIndicator,
Image,
ImageStyle,
Platform,
Pressable,
StyleProp,
StyleSheet,
Expand Down Expand Up @@ -221,7 +220,6 @@ let SearchScreenPostResults = ({
refreshing={isPTR}
onRefresh={onPullToRefresh}
onEndReached={onEndReached}
// @ts-ignore web only -prf
desktopFixedHeight
contentContainerStyle={{paddingBottom: 100}}
/>
Expand Down Expand Up @@ -260,7 +258,6 @@ let SearchScreenUserResults = ({
<ProfileCardWithFollowBtn profile={item} noBg />
)}
keyExtractor={item => item.did}
// @ts-ignore web only -prf
desktopFixedHeight
contentContainerStyle={{paddingBottom: 100}}
/>
Expand Down Expand Up @@ -306,7 +303,6 @@ let SearchScreenFeedsResults = ({
</View>
)}
keyExtractor={item => item.uri}
// @ts-ignore web only -prf
desktopFixedHeight
contentContainerStyle={{paddingBottom: 100}}
/>
Expand Down Expand Up @@ -556,11 +552,7 @@ let SearchScreenInner = ({
<Explore />
) : (
<Layout.Center>
<View
// @ts-ignore web only -esb
style={{
height: Platform.select({web: '100vh'}),
}}>
<View style={web({height: '100vh'})}>
{isDesktop && (
<Text
type="title"
Expand Down Expand Up @@ -856,7 +848,7 @@ export function SearchScreen(
<Layout.Center>
<View style={[a.p_md, a.pb_sm, a.gap_sm, t.atoms.bg]}>
<View style={[a.flex_row, a.gap_sm]}>
{!gtMobile && (
{!gtMobile && !showAutocomplete && (
<Button
testID="viewHeaderBackOrMenuBtn"
onPress={onPressMenu}
Expand Down

0 comments on commit f61390f

Please sign in to comment.