From 3ec8e7afd5d89457ebced8ac2c91b3e2569e1048 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Sat, 7 Dec 2024 16:43:34 -0600 Subject: [PATCH] Add back button to desktop threads --- src/view/com/post-thread/PostThread.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/view/com/post-thread/PostThread.tsx b/src/view/com/post-thread/PostThread.tsx index 0cdccff590..d8c2ba1183 100644 --- a/src/view/com/post-thread/PostThread.tsx +++ b/src/view/com/post-thread/PostThread.tsx @@ -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( @@ -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) {