1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

feat: personal dashboard scrollbars and spacing (#8493)

This commit is contained in:
Mateusz Kwasniewski 2024-10-21 13:14:51 +02:00 committed by GitHub
parent a6c7a5fc90
commit 9fecc02462
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 7 additions and 5 deletions

View File

@ -2,7 +2,7 @@ import { styled } from '@mui/material';
import type { FC, PropsWithChildren, ReactNode } from 'react';
const Container = styled('article')(({ theme }) => ({
padding: theme.spacing(4, 2),
padding: theme.spacing(1, 2),
display: 'flex',
gap: theme.spacing(3),
flexDirection: 'column',

View File

@ -44,6 +44,10 @@ const StyledUserAvatar = styled(UserAvatar)(({ theme }) => ({
marginTop: theme.spacing(0.5),
}));
const StyledMarkdown = styled(Markdown)(({ theme }) => ({
wordBreak: 'break-all',
}));
export const LatestProjectEvents: FC<{
latestEvents: PersonalDashboardProjectDetailsSchema['latestEvents'];
}> = ({ latestEvents }) => {
@ -73,10 +77,10 @@ export const LatestProjectEvents: FC<{
locationSettings.locale,
)}
</Timestamp>
<Markdown>
<StyledMarkdown>
{event.summary ||
'No preview available for this event'}
</Markdown>
</StyledMarkdown>
</div>
</Event>
);

View File

@ -115,7 +115,6 @@ export const MyFlags: FC<Props> = ({
disablePadding={true}
sx={{
height: '100%',
overflow: 'auto',
}}
>
{flagData.flags.map((flag) => (

View File

@ -106,7 +106,6 @@ export const listItemStyle = (theme: Theme) => ({
});
export const StyledList = styled(List)(({ theme }) => ({
overflowY: 'auto',
maxHeight: '400px',
...onWideContainer({