Files
twenty/packages/twenty-front/src/modules/activities/emails/components/EmailThreadMessageBody.tsx
bosiraphael a012ba1087 Fix message opening (#3687)
* fix

* improve styling so we can close the message by clicking on the whole header

* fix line overflowing

* fix
2024-01-30 11:56:26 +01:00

22 lines
528 B
TypeScript

import React from 'react';
import styled from '@emotion/styled';
const StyledThreadMessageBody = styled.div`
color: ${({ theme }) => theme.font.color.primary};
display: flex;
flex-direction: column;
margin-top: ${({ theme }) => theme.spacing(4)};
white-space: pre-line;
overflow-wrap: break-word;
`;
type EmailThreadMessageBodyProps = {
body: string;
};
export const EmailThreadMessageBody = ({
body,
}: EmailThreadMessageBodyProps) => {
return <StyledThreadMessageBody>{body}</StyledThreadMessageBody>;
};