diff options
author | dan <dan.abramov@gmail.com> | 2024-01-25 21:26:07 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-25 13:26:07 -0800 |
commit | de6b380f4ede660c5ab349d52ce8a595aa793aac (patch) | |
tree | 5fec700762043f78a7c284935d1204a4510c5278 /src | |
parent | 8d3179f0825a8d0bb55566c14e70e02a555ad3bf (diff) | |
download | voidsky-de6b380f4ede660c5ab349d52ce8a595aa793aac.tar.zst |
Show composer reply prompt on tablet (#2622)
Diffstat (limited to 'src')
-rw-r--r-- | src/view/com/post-thread/PostThread.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/view/com/post-thread/PostThread.tsx b/src/view/com/post-thread/PostThread.tsx index 8d2a4ac95..4d0aee494 100644 --- a/src/view/com/post-thread/PostThread.tsx +++ b/src/view/com/post-thread/PostThread.tsx @@ -152,7 +152,7 @@ function PostThreadLoaded({ const {hasSession} = useSession() const {_} = useLingui() const pal = usePalette('default') - const {isTablet, isDesktop, isTabletOrMobile} = useWebMediaQueries() + const {isTablet, isMobile, isDesktop, isTabletOrMobile} = useWebMediaQueries() const ref = useRef<ListMethods>(null) const highlightedPostRef = useRef<View | null>(null) const needsScrollAdjustment = useRef<boolean>( @@ -271,7 +271,7 @@ function PostThreadLoaded({ } else if (item === REPLY_PROMPT && hasSession) { return ( <View> - {isDesktop && <ComposePrompt onPressCompose={onPressReply} />} + {!isMobile && <ComposePrompt onPressCompose={onPressReply} />} </View> ) } else if (item === DELETED) { @@ -362,7 +362,7 @@ function PostThreadLoaded({ [ hasSession, isTablet, - isDesktop, + isMobile, onPressReply, pal.border, pal.viewLight, |