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 }) => ({
|
const StyledMarkdown = styled(Markdown)(({ theme }) => ({
|
||||||
wordBreak: 'break-all',
|
wordBreak: 'break-word',
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
const BreakLongWordsFallback = styled('div')({
|
||||||
|
wordBreak: 'break-all',
|
||||||
|
});
|
||||||
|
|
||||||
export const LatestProjectEvents: FC<{
|
export const LatestProjectEvents: FC<{
|
||||||
latestEvents: PersonalDashboardProjectDetailsSchema['latestEvents'];
|
latestEvents: PersonalDashboardProjectDetailsSchema['latestEvents'];
|
||||||
}> = ({ latestEvents }) => {
|
}> = ({ latestEvents }) => {
|
||||||
@ -77,10 +81,12 @@ export const LatestProjectEvents: FC<{
|
|||||||
locationSettings.locale,
|
locationSettings.locale,
|
||||||
)}
|
)}
|
||||||
</Timestamp>
|
</Timestamp>
|
||||||
<StyledMarkdown>
|
<BreakLongWordsFallback>
|
||||||
{event.summary ||
|
<StyledMarkdown>
|
||||||
'No preview available for this event'}
|
{event.summary ||
|
||||||
</StyledMarkdown>
|
'No preview available for this event'}
|
||||||
|
</StyledMarkdown>
|
||||||
|
</BreakLongWordsFallback>
|
||||||
</div>
|
</div>
|
||||||
</Event>
|
</Event>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user