From 8a3601c07c693fa85800644f072ab895f3be4242 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Mon, 20 Mar 2023 16:10:29 -0500 Subject: Fix visibility of the mentions autocomplete in the composer (#326) (#329) * Improve layout in composer to ensure the mentions autocomplete is visible (closes #326) * Dont dismiss the keyboard in the composer --- src/view/com/composer/Composer.tsx | 32 ++++++++++++++------------------ 1 file changed, 14 insertions(+), 18 deletions(-) (limited to 'src/view/com/composer/Composer.tsx') diff --git a/src/view/com/composer/Composer.tsx b/src/view/com/composer/Composer.tsx index db4a3233e..e10e801e4 100644 --- a/src/view/com/composer/Composer.tsx +++ b/src/view/com/composer/Composer.tsx @@ -32,6 +32,7 @@ import {SelectedPhotos} from './photos/SelectedPhotos' import {usePalette} from 'lib/hooks/usePalette' import QuoteEmbed from '../util/PostEmbeds/QuoteEmbed' import {useExternalLinkFetch} from './useExternalLinkFetch' +import {isDesktopWeb} from 'platform/detection' const MAX_TEXT_LENGTH = 256 @@ -188,10 +189,6 @@ export const ComposePost = observer(function ComposePost({ const canPost = text.length <= MAX_TEXT_LENGTH - const selectTextInputLayout = - selectedPhotos.length !== 0 - ? styles.textInputLayoutWithPhoto - : styles.textInputLayoutWithoutPhoto const selectTextInputPlaceholder = replyTo ? 'Write your reply' : selectedPhotos.length !== 0 @@ -253,7 +250,9 @@ export const ComposePost = observer(function ComposePost({ {error} )} - + {replyTo ? ( @@ -268,12 +267,7 @@ export const ComposePost = observer(function ComposePost({ ) : undefined} - +