diff options
author | Chenyu <10610892+BinaryFiddler@users.noreply.github.com> | 2025-07-21 19:49:59 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-21 19:49:59 -0700 |
commit | fc4bf4e9191a3894dbd033011bb8ff76994e67cd (patch) | |
tree | 21ac6447e72be52ee0b51371b3bbf1ce9c19db71 /src/view | |
parent | 2a30a344b54aa908c45f7ada874b8d2a10094d15 (diff) | |
download | voidsky-fc4bf4e9191a3894dbd033011bb8ff76994e67cd.tar.zst |
add margin between messages in the composer thread (#8691)
Diffstat (limited to 'src/view')
-rw-r--r-- | src/view/com/composer/Composer.tsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/view/com/composer/Composer.tsx b/src/view/com/composer/Composer.tsx index 492b9074f..71714fdde 100644 --- a/src/view/com/composer/Composer.tsx +++ b/src/view/com/composer/Composer.tsx @@ -699,6 +699,7 @@ export const ComposePost = ({ dispatch={composerDispatch} textInput={post.id === activePost.id ? textInput : null} isFirstPost={index === 0} + isLastPost={index === thread.posts.length - 1} isPartOfThread={thread.posts.length > 1} isReply={index > 0 || !!replyTo} isActive={post.id === activePost.id} @@ -738,6 +739,7 @@ let ComposerPost = React.memo(function ComposerPost({ isActive, isReply, isFirstPost, + isLastPost, isPartOfThread, canRemovePost, canRemoveQuote, @@ -752,6 +754,7 @@ let ComposerPost = React.memo(function ComposerPost({ isActive: boolean isReply: boolean isFirstPost: boolean + isLastPost: boolean isPartOfThread: boolean canRemovePost: boolean canRemoveQuote: boolean @@ -830,6 +833,8 @@ let ComposerPost = React.memo(function ComposerPost({ <View style={[ a.mx_lg, + a.mb_sm, + !isActive && isLastPost && a.mb_lg, !isActive && styles.inactivePost, isTextOnly && isNative && a.flex_grow, ]}> |