Skip to content

Commit

Permalink
fix: people list tab content is hidden behind the navigation bar
Browse files Browse the repository at this point in the history
  • Loading branch information
gonz0wsky committed Jan 26, 2025
1 parent 355c50f commit 41d9d73
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/view/com/lists/ListMembers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {AppBskyActorDefs, AppBskyGraphDefs} from '@atproto/api'
import {msg} from '@lingui/macro'
import {useLingui} from '@lingui/react'

import {useBottomBarOffset} from '#/lib/hooks/useBottomBarOffset'
import {useWebMediaQueries} from '#/lib/hooks/useWebMediaQueries'
import {cleanError} from '#/lib/strings/errors'
import {logger} from '#/logger'
Expand Down Expand Up @@ -51,6 +52,7 @@ export function ListMembers({
const {isMobile} = useWebMediaQueries()
const {openModal} = useModalControls()
const {currentAccount} = useSession()
const bottomBarOffset = useBottomBarOffset()

const {
data,
Expand Down Expand Up @@ -201,9 +203,17 @@ export function ListMembers({
error={cleanError(error)}
isFetchingNextPage={isFetchingNextPage}
onRetry={fetchNextPage}
style={{marginBottom: headerOffset}}
/>
)
}, [hasNextPage, error, isFetchingNextPage, fetchNextPage, isEmpty])
}, [
isEmpty,
hasNextPage,
error,
isFetchingNextPage,
fetchNextPage,
headerOffset,
])

return (
<View testID={testID} style={style}>
Expand All @@ -227,6 +237,9 @@ export function ListMembers({
removeClippedSubviews={true}
// @ts-ignore our .web version only -prf
desktopFixedHeight={desktopFixedHeightOffset || true}
scrollIndicatorInsets={{
bottom: bottomBarOffset,
}}
/>
</View>
)
Expand Down

0 comments on commit 41d9d73

Please sign in to comment.