From 63c0c7e6211e35f7388dfbc5c5509e727dd4203e Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Sun, 8 Dec 2024 14:44:01 -0600 Subject: Add back button to desktop threads (#7010) --- src/view/com/post-thread/PostThread.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/view/com/post-thread/PostThread.tsx') diff --git a/src/view/com/post-thread/PostThread.tsx b/src/view/com/post-thread/PostThread.tsx index 0cdccff59..d8c2ba118 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) { -- cgit 1.4.1