add margin between messages in the composer thread (#8691)
This commit is contained in:
@@ -699,6 +699,7 @@ export const ComposePost = ({
|
|||||||
dispatch={composerDispatch}
|
dispatch={composerDispatch}
|
||||||
textInput={post.id === activePost.id ? textInput : null}
|
textInput={post.id === activePost.id ? textInput : null}
|
||||||
isFirstPost={index === 0}
|
isFirstPost={index === 0}
|
||||||
|
isLastPost={index === thread.posts.length - 1}
|
||||||
isPartOfThread={thread.posts.length > 1}
|
isPartOfThread={thread.posts.length > 1}
|
||||||
isReply={index > 0 || !!replyTo}
|
isReply={index > 0 || !!replyTo}
|
||||||
isActive={post.id === activePost.id}
|
isActive={post.id === activePost.id}
|
||||||
@@ -738,6 +739,7 @@ let ComposerPost = React.memo(function ComposerPost({
|
|||||||
isActive,
|
isActive,
|
||||||
isReply,
|
isReply,
|
||||||
isFirstPost,
|
isFirstPost,
|
||||||
|
isLastPost,
|
||||||
isPartOfThread,
|
isPartOfThread,
|
||||||
canRemovePost,
|
canRemovePost,
|
||||||
canRemoveQuote,
|
canRemoveQuote,
|
||||||
@@ -752,6 +754,7 @@ let ComposerPost = React.memo(function ComposerPost({
|
|||||||
isActive: boolean
|
isActive: boolean
|
||||||
isReply: boolean
|
isReply: boolean
|
||||||
isFirstPost: boolean
|
isFirstPost: boolean
|
||||||
|
isLastPost: boolean
|
||||||
isPartOfThread: boolean
|
isPartOfThread: boolean
|
||||||
canRemovePost: boolean
|
canRemovePost: boolean
|
||||||
canRemoveQuote: boolean
|
canRemoveQuote: boolean
|
||||||
@@ -830,6 +833,8 @@ let ComposerPost = React.memo(function ComposerPost({
|
|||||||
<View
|
<View
|
||||||
style={[
|
style={[
|
||||||
a.mx_lg,
|
a.mx_lg,
|
||||||
|
a.mb_sm,
|
||||||
|
!isActive && isLastPost && a.mb_lg,
|
||||||
!isActive && styles.inactivePost,
|
!isActive && styles.inactivePost,
|
||||||
isTextOnly && isNative && a.flex_grow,
|
isTextOnly && isNative && a.flex_grow,
|
||||||
]}>
|
]}>
|
||||||
|
|||||||
Reference in New Issue
Block a user