about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2025-01-07 22:21:58 +0000
committerGitHub <noreply@github.com>2025-01-07 22:21:58 +0000
commitf61390fdf4cf630473ad9cf848a55997f7e4517b (patch)
tree56cdfa09b9459f1cb668d72747d3816049d1d5b7 /src
parentf3229d554b964aca4fe69dcc032c7a3fbdf1dec1 (diff)
downloadvoidsky-f61390fdf4cf630473ad9cf848a55997f7e4517b.tar.zst
Hide menu button when search is focused (#7373)
* hide menu btn when cancel is shown

* remove useless ts-ignores
Diffstat (limited to 'src')
-rw-r--r--src/view/screens/Search/Search.tsx12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/view/screens/Search/Search.tsx b/src/view/screens/Search/Search.tsx
index 2c91d37a2..b11bb0510 100644
--- a/src/view/screens/Search/Search.tsx
+++ b/src/view/screens/Search/Search.tsx
@@ -3,7 +3,6 @@ import {
   ActivityIndicator,
   Image,
   ImageStyle,
-  Platform,
   Pressable,
   StyleProp,
   StyleSheet,
@@ -221,7 +220,6 @@ let SearchScreenPostResults = ({
               refreshing={isPTR}
               onRefresh={onPullToRefresh}
               onEndReached={onEndReached}
-              // @ts-ignore web only -prf
               desktopFixedHeight
               contentContainerStyle={{paddingBottom: 100}}
             />
@@ -260,7 +258,6 @@ let SearchScreenUserResults = ({
             <ProfileCardWithFollowBtn profile={item} noBg />
           )}
           keyExtractor={item => item.did}
-          // @ts-ignore web only -prf
           desktopFixedHeight
           contentContainerStyle={{paddingBottom: 100}}
         />
@@ -306,7 +303,6 @@ let SearchScreenFeedsResults = ({
             </View>
           )}
           keyExtractor={item => item.uri}
-          // @ts-ignore web only -prf
           desktopFixedHeight
           contentContainerStyle={{paddingBottom: 100}}
         />
@@ -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"
@@ -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}