Skip to content

Commit

Permalink
Add back button to desktop threads (bluesky-social#7010)
Browse files Browse the repository at this point in the history
  • Loading branch information
estrattonbailey authored Dec 8, 2024
1 parent ea6ac25 commit 63c0c7e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/view/com/post-thread/PostThread.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export function PostThread({uri}: {uri: string | undefined}) {
const {hasSession, currentAccount} = useSession()
const {_} = useLingui()
const t = useTheme()
const {isMobile, isTabletOrMobile} = useWebMediaQueries()
const {isMobile} = useWebMediaQueries()
const initialNumToRender = useInitialNumToRender()
const {height: windowHeight} = useWindowDimensions()
const [hiddenRepliesState, setHiddenRepliesState] = React.useState(
Expand Down Expand Up @@ -367,8 +367,7 @@ export function PostThread({uri}: {uri: string | undefined}) {
skeleton?.highlightedPost?.type === 'post' &&
(skeleton.highlightedPost.ctx.isParentLoading ||
Boolean(skeleton?.parents && skeleton.parents.length > 0))
const showHeader =
isNative || (isTabletOrMobile && (!hasParents || !isFetching))
const showHeader = isNative || !hasParents || !isFetching

const renderItem = ({item, index}: {item: RowItem; index: number}) => {
if (item === REPLY_PROMPT && hasSession) {
Expand Down

0 comments on commit 63c0c7e

Please sign in to comment.