From 9b8d62ca254863455b895cf016fe19825285ca70 Mon Sep 17 00:00:00 2001 From: Hailey Date: Sat, 7 Sep 2024 13:29:27 -0700 Subject: [PATCH] [Video] Tweak order of elements in composer (#5213) --- src/view/com/composer/Composer.tsx | 64 +++++++++++++++--------------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/src/view/com/composer/Composer.tsx b/src/view/com/composer/Composer.tsx index 3c7868ad..25ed6c76 100644 --- a/src/view/com/composer/Composer.tsx +++ b/src/view/com/composer/Composer.tsx @@ -200,6 +200,7 @@ export const ComposePost = observer(function ComposePost({ } }, }) + const hasVideo = Boolean(videoUploadState.asset || videoUploadState.video) const [publishOnUpload, setPublishOnUpload] = useState(false) @@ -730,8 +731,37 @@ export const ComposePost = observer(function ComposePost({ /> )} - - + + {hasVideo && ( + + {videoUploadState.asset && + (videoUploadState.status === 'compressing' ? ( + + ) : videoUploadState.video ? ( + + ) : null)} + + + )} + + {quote ? ( @@ -742,36 +772,6 @@ export const ComposePost = observer(function ComposePost({ )} ) : null} - - {(videoUploadState.asset || videoUploadState.video) && ( - - {videoUploadState.asset && - (videoUploadState.status === 'compressing' ? ( - - ) : videoUploadState.video ? ( - - ) : null)} - - - )} -