1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-20 00:08:02 +01:00

fix: overflowing description (#6150)

This commit is contained in:
Mateusz Kwasniewski 2024-02-07 12:51:10 +01:00 committed by GitHub
parent b9a8280177
commit 11bfcd605a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -56,6 +56,10 @@ const StyledDescriptionContainer = styled('div')(({ theme }) => ({
color: theme.palette.primary.contrastText, color: theme.palette.primary.contrastText,
})); }));
const StyledDescription = styled('p')({
wordBreak: 'break-all',
});
const FeatureOverviewMetaData = () => { const FeatureOverviewMetaData = () => {
const projectId = useRequiredPathParam('projectId'); const projectId = useRequiredPathParam('projectId');
const featureId = useRequiredPathParam('featureId'); const featureId = useRequiredPathParam('featureId');
@ -88,7 +92,9 @@ const FeatureOverviewMetaData = () => {
<StyledBodyItem data-loading> <StyledBodyItem data-loading>
<div>Description:</div> <div>Description:</div>
<StyledDescriptionContainer> <StyledDescriptionContainer>
<p>{description}</p> <StyledDescription>
{description}
</StyledDescription>
<PermissionIconButton <PermissionIconButton
projectId={projectId} projectId={projectId}
permission={UPDATE_FEATURE} permission={UPDATE_FEATURE}