From a14c2ede39709cb9a986edaef6580a09a588e645 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Wed, 22 Mar 2023 15:49:49 -0500 Subject: Fix layout issues with search on Web (close #345) (#357) --- src/view/com/search/SearchResults.tsx | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/view/com/search/SearchResults.tsx b/src/view/com/search/SearchResults.tsx index 802f9e5a1..4bf46515c 100644 --- a/src/view/com/search/SearchResults.tsx +++ b/src/view/com/search/SearchResults.tsx @@ -42,14 +42,20 @@ export const SearchResults = observer(({model}: {model: SearchUIModel}) => { const PostResults = observer(({model}: {model: SearchUIModel}) => { const pal = usePalette('default') if (model.isPostsLoading) { - return + return ( + + + + ) } if (model.postUris.length === 0) { return ( - - No posts found for "{model.query}" - + + + No posts found for "{model.query}" + + ) } @@ -68,14 +74,20 @@ const PostResults = observer(({model}: {model: SearchUIModel}) => { const Profiles = observer(({model}: {model: SearchUIModel}) => { const pal = usePalette('default') if (model.isProfilesLoading) { - return + return ( + + + + ) } if (model.profiles.length === 0) { return ( - - No users found for "{model.query}" - + + + No users found for "{model.query}" + + ) } -- cgit 1.4.1