fix: right margin on body shorted than author name

pull/2448/head
Audric Ackermann 3 years ago
parent e5f484f5bd
commit 98ea07a361

@ -44,11 +44,6 @@ const StyledMessageContentContainer = styled.div<{ direction: 'left' | 'right' }
} }
`; `;
const StyledMessageContentWithAuthor = styled.div`
display: flex;
flex-direction: column;
`;
export const MessageContentWithStatuses = (props: Props) => { export const MessageContentWithStatuses = (props: Props) => {
const contentProps = useSelector(state => const contentProps = useSelector(state =>
getMessageContentWithStatusesSelectorProps(state as any, props.messageId) getMessageContentWithStatusesSelectorProps(state as any, props.messageId)
@ -127,11 +122,11 @@ export const MessageContentWithStatuses = (props: Props) => {
messageId={messageId} messageId={messageId}
isCorrectSide={isIncoming} isCorrectSide={isIncoming}
/> />
<StyledMessageContentWithAuthor> <div>
<MessageAuthorText messageId={messageId} /> <MessageAuthorText messageId={messageId} />
<MessageContent messageId={messageId} isDetailView={isDetailView} /> <MessageContent messageId={messageId} isDetailView={isDetailView} />
</StyledMessageContentWithAuthor> </div>
<MessageStatus <MessageStatus
dataTestId="msg-status-outgoing" dataTestId="msg-status-outgoing"
messageId={messageId} messageId={messageId}

Loading…
Cancel
Save