search and nav improvements

This commit is contained in:
Samuel Newman
2024-11-09 11:21:54 +00:00
parent 3cbbd67198
commit 95dc239c56
2 changed files with 5 additions and 2 deletions
+2 -2
View File
@@ -37,7 +37,7 @@ import {
} from '#/lib/routes/types'
import {augmentSearchQuery} from '#/lib/strings/helpers'
import {logger} from '#/logger'
import {isNative, isWeb} from '#/platform/detection'
import {isNative, isNativeTablet, isWeb} from '#/platform/detection'
import {listenSoftReset} from '#/state/events'
import {useLanguagePrefs} from '#/state/preferences/languages'
import {useModerationOpts} from '#/state/preferences/moderation-opts'
@@ -874,7 +874,7 @@ export function SearchScreen(
]}
sideBorders={gtMobile}>
<View style={[a.flex_row, a.gap_sm]}>
{!gtMobile && (
{!gtMobile && !isNativeTablet && (
<Button
testID="viewHeaderBackOrMenuBtn"
onPress={onPressMenu}
+3
View File
@@ -1,5 +1,6 @@
import React from 'react'
import {StyleSheet, TouchableOpacity, View} from 'react-native'
import {useSafeAreaInsets} from 'react-native-safe-area-context'
import {
FontAwesomeIcon,
FontAwesomeIconStyle,
@@ -357,6 +358,7 @@ export function LeftNav() {
const {_} = useLingui()
const {isDesktop, isTablet} = useWebMediaQueries()
const numUnreadNotifications = useUnreadNotifications()
const insets = useSafeAreaInsets()
if (!hasSession && !isDesktop) {
return null
@@ -370,6 +372,7 @@ export function LeftNav() {
isTablet && styles.leftNavTablet,
pal.view,
pal.border,
{paddingTop: insets.top},
]}>
{hasSession ? (
<ProfileCard />