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:
parent
a6c7a5fc90
commit
9fecc02462
@ -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',
|
||||
|
@ -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>
|
||||
);
|
||||
|
@ -115,7 +115,6 @@ export const MyFlags: FC<Props> = ({
|
||||
disablePadding={true}
|
||||
sx={{
|
||||
height: '100%',
|
||||
overflow: 'auto',
|
||||
}}
|
||||
>
|
||||
{flagData.flags.map((flag) => (
|
||||
|
@ -106,7 +106,6 @@ export const listItemStyle = (theme: Theme) => ({
|
||||
});
|
||||
|
||||
export const StyledList = styled(List)(({ theme }) => ({
|
||||
overflowY: 'auto',
|
||||
maxHeight: '400px',
|
||||
|
||||
...onWideContainer({
|
||||
|
Loading…
Reference in New Issue
Block a user