about summary refs log tree commit diff
path: root/src/view/com/post-thread/PostThread.tsx
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2024-01-25 21:26:07 +0000
committerGitHub <noreply@github.com>2024-01-25 13:26:07 -0800
commitde6b380f4ede660c5ab349d52ce8a595aa793aac (patch)
tree5fec700762043f78a7c284935d1204a4510c5278 /src/view/com/post-thread/PostThread.tsx
parent8d3179f0825a8d0bb55566c14e70e02a555ad3bf (diff)
downloadvoidsky-de6b380f4ede660c5ab349d52ce8a595aa793aac.tar.zst
Show composer reply prompt on tablet (#2622)
Diffstat (limited to 'src/view/com/post-thread/PostThread.tsx')
-rw-r--r--src/view/com/post-thread/PostThread.tsx6
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,