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