1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-19 17:52:45 +02:00

fix: break words first, break all second

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

View File

@ -44,12 +44,8 @@ const StyledUserAvatar = styled(UserAvatar)(({ theme }) => ({
marginTop: theme.spacing(0.5),
}));
const StyledMarkdown = styled(Markdown)(({ theme }) => ({
wordBreak: 'break-word',
}));
const BreakLongWordsFallback = styled('div')({
wordBreak: 'break-all',
const StyledMarkdown = styled(Markdown)({
overflowWrap: 'anywhere',
});
export const LatestProjectEvents: FC<{
@ -81,12 +77,10 @@ export const LatestProjectEvents: FC<{
locationSettings.locale,
)}
</Timestamp>
<BreakLongWordsFallback>
<StyledMarkdown>
{event.summary ||
'No preview available for this event'}
</StyledMarkdown>
</BreakLongWordsFallback>
<StyledMarkdown>
{event.summary ||
'No preview available for this event'}
</StyledMarkdown>
</div>
</Event>
);