Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix missing top borders (#4346)

authored by

dan and committed by
GitHub
6f158997 2ffb98e2

+5 -13
+2 -2
src/view/com/feeds/ProfileFeedgens.tsx
··· 14 14 import {cleanError} from '#/lib/strings/errors' 15 15 import {useTheme} from '#/lib/ThemeContext' 16 16 import {logger} from '#/logger' 17 - import {isNative} from '#/platform/detection' 17 + import {isNative, isWeb} from '#/platform/detection' 18 18 import {hydrateFeedGenerator} from '#/state/queries/feed' 19 19 import {usePreferencesQuery} from '#/state/queries/preferences' 20 20 import {RQKEY, useProfileFeedgensQuery} from '#/state/queries/profile-feedgens' ··· 166 166 preferences={preferences} 167 167 style={styles.item} 168 168 showLikes 169 - hideTopBorder={index === 0} 169 + hideTopBorder={index === 0 && !isWeb} 170 170 /> 171 171 ) 172 172 }
+2 -2
src/view/com/lists/ProfileLists.tsx
··· 14 14 import {cleanError} from '#/lib/strings/errors' 15 15 import {useTheme} from '#/lib/ThemeContext' 16 16 import {logger} from '#/logger' 17 - import {isNative} from '#/platform/detection' 17 + import {isNative, isWeb} from '#/platform/detection' 18 18 import {RQKEY, useProfileListsQuery} from '#/state/queries/profile-lists' 19 19 import {useAnalytics} from 'lib/analytics/analytics' 20 20 import {FeedLoadingPlaceholder} from '#/view/com/util/LoadingPlaceholder' ··· 170 170 list={item} 171 171 testID={`list-${item.name}`} 172 172 style={styles.item} 173 - noBorder={index === 0} 173 + noBorder={index === 0 && !isWeb} 174 174 /> 175 175 ) 176 176 },
+1 -9
src/view/com/posts/Feed.tsx
··· 32 32 import {useSession} from '#/state/session' 33 33 import {useAnalytics} from 'lib/analytics/analytics' 34 34 import {useInitialNumToRender} from 'lib/hooks/useInitialNumToRender' 35 - import {useWebMediaQueries} from 'lib/hooks/useWebMediaQueries' 36 35 import {useTheme} from 'lib/ThemeContext' 37 36 import {List, ListRef} from '../util/List' 38 37 import {PostFeedLoadingPlaceholder} from '../util/LoadingPlaceholder' ··· 102 101 const checkForNewRef = React.useRef<(() => void) | null>(null) 103 102 const lastFetchRef = React.useRef<number>(Date.now()) 104 103 const [feedType, feedUri] = feed.split('|') 105 - const {isTabletOrMobile} = useWebMediaQueries() 106 104 107 105 const opts = React.useMemo( 108 106 () => ({enabled, ignoreFilterFor}), ··· 314 312 // -prf 315 313 return <DiscoverFallbackHeader /> 316 314 } 317 - return ( 318 - <FeedSlice 319 - slice={item} 320 - hideTopBorder={index === 0 && isTabletOrMobile} 321 - /> 322 - ) 315 + return <FeedSlice slice={item} hideTopBorder={index === 0 && !isWeb} /> 323 316 }, 324 317 [ 325 - isTabletOrMobile, 326 318 renderEmptyState, 327 319 feed, 328 320 error,