Show composer reply prompt on tablet (#2622)

zio/stable
dan 2024-01-25 21:26:07 +00:00 committed by GitHub
parent 8d3179f082
commit de6b380f4e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -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,