From b25e1d5ece11f846dc13f8cc7110a0a73108fbd2 Mon Sep 17 00:00:00 2001 From: Ryan Skinner Date: Wed, 22 May 2024 15:34:01 -0400 Subject: [PATCH] tightening up styling --- src/view/screens/Search/Search.tsx | 56 +++++++++++++++++++----------- 1 file changed, 35 insertions(+), 21 deletions(-) diff --git a/src/view/screens/Search/Search.tsx b/src/view/screens/Search/Search.tsx index 0c092c4726..29c3241622 100644 --- a/src/view/screens/Search/Search.tsx +++ b/src/view/screens/Search/Search.tsx @@ -965,7 +965,7 @@ function SearchHistory({ onRemoveItemClick: (item: string) => void onRemoveProfileClick: (profile: AppBskyActorDefs.ProfileViewBasic) => void }) { - const {isTabletOrDesktop} = useWebMediaQueries() + const {isTabletOrDesktop, isMobile} = useWebMediaQueries() const pal = usePalette('default') return ( @@ -976,20 +976,30 @@ function SearchHistory({ height: isWeb ? '100vh' : undefined, }}> + {(searchHistory.length > 0 || selectedProfiles.length > 0) && ( + + Recent Searches + + )} {selectedProfiles.length > 0 && ( - - - Recent Profiles - + {selectedProfiles.slice(0, 5).map((profile, index) => ( - + onProfileClick(profile)} @@ -1025,9 +1035,6 @@ function SearchHistory({ )} {searchHistory.length > 0 && ( - - Recent Searches - {searchHistory.slice(0, 5).map((historyItem, index) => (