diff options
author | Eric Bailey <git@esb.lol> | 2024-12-08 14:44:01 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-08 14:44:01 -0600 |
commit | 63c0c7e6211e35f7388dfbc5c5509e727dd4203e (patch) | |
tree | c7470661645f826022cc3914a9c050c62799be72 /src/view/com/post-thread/PostThread.tsx | |
parent | ea6ac2568433ac86d89195cbc61e54e03e6a6665 (diff) | |
download | voidsky-63c0c7e6211e35f7388dfbc5c5509e727dd4203e.tar.zst |
Add back button to desktop threads (#7010)
Diffstat (limited to 'src/view/com/post-thread/PostThread.tsx')
-rw-r--r-- | src/view/com/post-thread/PostThread.tsx | 5 |
1 files changed, 2 insertions, 3 deletions
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) { |