Fix double border, improve load state (#1997)
parent
e9a11114d3
commit
486fb72798
|
@ -24,7 +24,7 @@ import {
|
||||||
SearchTabNavigatorParams,
|
SearchTabNavigatorParams,
|
||||||
} from 'lib/routes/types'
|
} from 'lib/routes/types'
|
||||||
import {Text} from '#/view/com/util/text/Text'
|
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 {ProfileCardWithFollowBtn} from '#/view/com/profile/ProfileCard'
|
||||||
import {Post} from '#/view/com/post/Post'
|
import {Post} from '#/view/com/post/Post'
|
||||||
import {Pager} from '#/view/com/pager/Pager'
|
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 {useSetMinimalShellMode, useSetDrawerSwipeDisabled} from '#/state/shell'
|
||||||
import {isWeb} from '#/platform/detection'
|
import {isWeb} from '#/platform/detection'
|
||||||
import {listenSoftReset} from '#/state/events'
|
import {listenSoftReset} from '#/state/events'
|
||||||
|
import {s} from '#/lib/styles'
|
||||||
|
|
||||||
function Loader() {
|
function Loader() {
|
||||||
const pal = usePalette('default')
|
const pal = usePalette('default')
|
||||||
|
@ -162,9 +163,9 @@ function SearchScreenSuggestedFollows() {
|
||||||
contentContainerStyle={{paddingBottom: 1200}}
|
contentContainerStyle={{paddingBottom: 1200}}
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<CenteredView
|
<CenteredView sideBorders style={[pal.border, s.hContentRegion]}>
|
||||||
style={[pal.border, {borderLeftWidth: 1, borderRightWidth: 1}]}>
|
<ProfileCardFeedLoadingPlaceholder />
|
||||||
<NotificationFeedLoadingPlaceholder />
|
<ProfileCardFeedLoadingPlaceholder />
|
||||||
</CenteredView>
|
</CenteredView>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue