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:
parent
f425eee7ce
commit
9ae0079f55
@ -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>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user