about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2023-11-26 15:43:49 -0600
committerGitHub <noreply@github.com>2023-11-26 13:43:49 -0800
commit486fb72798a82ac56e993437d99ad26c012cf489 (patch)
tree5d2b0b9a875e5ba9652eeb693e4c831b1b65d39f /src
parente9a11114d384d5ddf8b193da474c4a1b6be5c129 (diff)
downloadvoidsky-486fb72798a82ac56e993437d99ad26c012cf489.tar.zst
Fix double border, improve load state (#1997)
Diffstat (limited to 'src')
-rw-r--r--src/view/screens/Search/Search.tsx9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/view/screens/Search/Search.tsx b/src/view/screens/Search/Search.tsx
index 5a25ce755..f031abcc2 100644
--- a/src/view/screens/Search/Search.tsx
+++ b/src/view/screens/Search/Search.tsx
@@ -24,7 +24,7 @@ import {
   SearchTabNavigatorParams,
 } from 'lib/routes/types'
 import {Text} from '#/view/com/util/text/Text'
-import {NotificationFeedLoadingPlaceholder} from 'view/com/util/LoadingPlaceholder'
+import {ProfileCardFeedLoadingPlaceholder} from 'view/com/util/LoadingPlaceholder'
 import {ProfileCardWithFollowBtn} from '#/view/com/profile/ProfileCard'
 import {Post} from '#/view/com/post/Post'
 import {Pager} from '#/view/com/pager/Pager'
@@ -45,6 +45,7 @@ import {SearchResultCard} from '#/view/shell/desktop/Search'
 import {useSetMinimalShellMode, useSetDrawerSwipeDisabled} from '#/state/shell'
 import {isWeb} from '#/platform/detection'
 import {listenSoftReset} from '#/state/events'
+import {s} from '#/lib/styles'
 
 function Loader() {
   const pal = usePalette('default')
@@ -162,9 +163,9 @@ function SearchScreenSuggestedFollows() {
       contentContainerStyle={{paddingBottom: 1200}}
     />
   ) : (
-    <CenteredView
-      style={[pal.border, {borderLeftWidth: 1, borderRightWidth: 1}]}>
-      <NotificationFeedLoadingPlaceholder />
+    <CenteredView sideBorders style={[pal.border, s.hContentRegion]}>
+      <ProfileCardFeedLoadingPlaceholder />
+      <ProfileCardFeedLoadingPlaceholder />
     </CenteredView>
   )
 }