This commit is contained in:
Samuel Newman
2026-03-24 14:42:53 +02:00
parent 908851ced2
commit d54896571a
+6 -8
View File
@@ -268,6 +268,7 @@ export function SearchScreenShell({
const handleProfileClick = useCallback( const handleProfileClick = useCallback(
(profile: bsky.profile.AnyProfileView) => { (profile: bsky.profile.AnyProfileView) => {
setSearchText('')
unstableCacheProfileView(queryClient, profile) unstableCacheProfileView(queryClient, profile)
// Slight delay to avoid updating during push nav animation. // Slight delay to avoid updating during push nav animation.
setTimeout(() => { setTimeout(() => {
@@ -442,7 +443,7 @@ export function SearchScreenShell({
</View> </View>
<View style={[a.flex_1, a.relative]}> <View style={[a.flex_1, a.relative]}>
<View style={[web(showAutocomplete && a.hidden)]}> <View style={[a.flex_1, web(showAutocomplete && a.hidden)]}>
<SearchScreenInner <SearchScreenInner
key={params.lang} key={params.lang}
activeTab={activeTab} activeTab={activeTab}
@@ -458,13 +459,10 @@ export function SearchScreenShell({
<Animated.View <Animated.View
entering={native(FadeInDown.easing(Easing.out(Easing.cubic)))} entering={native(FadeInDown.easing(Easing.out(Easing.cubic)))}
exiting={native(FadeOutDown.easing(Easing.out(Easing.cubic)))} exiting={native(FadeOutDown.easing(Easing.out(Easing.cubic)))}
style={[ style={platform({
t.atoms.bg, web: [a.flex_1],
platform({ native: [t.atoms.bg, a.absolute, a.inset_0],
web: [a.flex_1], })}
native: [a.absolute, a.inset_0],
}),
]}
accessibilityViewIsModal> accessibilityViewIsModal>
{searchText.length > 0 ? ( {searchText.length > 0 ? (
<AutocompleteResults <AutocompleteResults