1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-10 17:53:36 +02:00

fix: break words first, break all second

This commit is contained in:
kwasniew 2024-10-21 14:48:03 +02:00
parent a8206f5118
commit f425eee7ce
No known key found for this signature in database
GPG Key ID: 43A7CBC24C119560

View File

@ -45,9 +45,13 @@ const StyledUserAvatar = styled(UserAvatar)(({ theme }) => ({
}));
const StyledMarkdown = styled(Markdown)(({ theme }) => ({
wordBreak: 'break-all',
wordBreak: 'break-word',
}));
const BreakLongWordsFallback = styled('div')({
wordBreak: 'break-all',
});
export const LatestProjectEvents: FC<{
latestEvents: PersonalDashboardProjectDetailsSchema['latestEvents'];
}> = ({ latestEvents }) => {
@ -77,10 +81,12 @@ export const LatestProjectEvents: FC<{
locationSettings.locale,
)}
</Timestamp>
<StyledMarkdown>
{event.summary ||
'No preview available for this event'}
</StyledMarkdown>
<BreakLongWordsFallback>
<StyledMarkdown>
{event.summary ||
'No preview available for this event'}
</StyledMarkdown>
</BreakLongWordsFallback>
</div>
</Event>
);