fix left padding in direct convo
This commit is contained in:
@@ -471,6 +471,7 @@ let MessageItem = ({
|
|||||||
<ReplyCaption
|
<ReplyCaption
|
||||||
replyTo={replyTo}
|
replyTo={replyTo}
|
||||||
isFromSelf={isFromSelf}
|
isFromSelf={isFromSelf}
|
||||||
|
isGroupChat={isGroupChat}
|
||||||
replierDisplayName={displayName}
|
replierDisplayName={displayName}
|
||||||
relatedProfiles={relatedProfiles}
|
relatedProfiles={relatedProfiles}
|
||||||
onPress={() => scrollToMessage(replyTo.id)}
|
onPress={() => scrollToMessage(replyTo.id)}
|
||||||
@@ -752,12 +753,14 @@ function BlockedPlaceholder({
|
|||||||
function ReplyCaption({
|
function ReplyCaption({
|
||||||
replyTo,
|
replyTo,
|
||||||
isFromSelf,
|
isFromSelf,
|
||||||
|
isGroupChat,
|
||||||
replierDisplayName,
|
replierDisplayName,
|
||||||
relatedProfiles,
|
relatedProfiles,
|
||||||
onPress,
|
onPress,
|
||||||
}: {
|
}: {
|
||||||
replyTo: ChatBskyConvoDefs.MessageView | ChatBskyConvoDefs.DeletedMessageView
|
replyTo: ChatBskyConvoDefs.MessageView | ChatBskyConvoDefs.DeletedMessageView
|
||||||
isFromSelf: boolean
|
isFromSelf: boolean
|
||||||
|
isGroupChat: boolean
|
||||||
replierDisplayName: string | null
|
replierDisplayName: string | null
|
||||||
relatedProfiles: Map<string, ChatBskyActorDefs.ProfileViewBasic>
|
relatedProfiles: Map<string, ChatBskyActorDefs.ProfileViewBasic>
|
||||||
onPress: () => void
|
onPress: () => void
|
||||||
@@ -787,7 +790,10 @@ function ReplyCaption({
|
|||||||
a.pt_xs,
|
a.pt_xs,
|
||||||
isFromSelf
|
isFromSelf
|
||||||
? [a.justify_end, a.pr_md]
|
? [a.justify_end, a.pr_md]
|
||||||
: [a.justify_start, {paddingLeft: DISPLAY_NAME_INSET}],
|
: [
|
||||||
|
a.justify_start,
|
||||||
|
isGroupChat ? {paddingLeft: DISPLAY_NAME_INSET} : a.pl_md,
|
||||||
|
],
|
||||||
]}>
|
]}>
|
||||||
<ArrowCornerDownRightIcon
|
<ArrowCornerDownRightIcon
|
||||||
size="xs"
|
size="xs"
|
||||||
|
|||||||
Reference in New Issue
Block a user