From 95e8a6bf4104ef85006b6341f3c7c069a21243d9 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Wed, 20 Sep 2023 19:11:28 -0700 Subject: [PATCH] Even less intrusive status line for posts (#1496) --- src/view/com/composer/Composer.tsx | 81 +++++++++++++++--------------- 1 file changed, 40 insertions(+), 41 deletions(-) diff --git a/src/view/com/composer/Composer.tsx b/src/view/com/composer/Composer.tsx index 6a4215b9..8629c4fc 100644 --- a/src/view/com/composer/Composer.tsx +++ b/src/view/com/composer/Composer.tsx @@ -253,36 +253,48 @@ export const ComposePost = observer(function ComposePost({ Cancel - {isProcessing ? ( - - - - ) : canPost ? ( - - - - {replyTo ? 'Reply' : 'Post'} - - - + <> + {processingState} + + + + ) : ( - - Post - + <> + + {canPost ? ( + + + + {replyTo ? 'Reply' : 'Post'} + + + + ) : ( + + Post + + )} + )} {store.preferences.requireAltTextEnabled && gallery.needsAltText && ( @@ -369,12 +381,6 @@ export const ComposePost = observer(function ComposePost({ ) : undefined} - {isProcessing ? ( - - - {processingState} - - ) : undefined} {!extLink && suggestedLinks.size > 0 ? ( {Array.from(suggestedLinks) @@ -435,13 +441,6 @@ const styles = StyleSheet.create({ paddingHorizontal: 20, paddingVertical: 6, }, - processingLine: { - flexDirection: 'row', - alignItems: 'center', - gap: 8, - paddingHorizontal: 26, - paddingVertical: 12, - }, errorLine: { flexDirection: 'row', backgroundColor: colors.red1,