mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-15 01:16:22 +02: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';
|
import type { FC, PropsWithChildren, ReactNode } from 'react';
|
||||||
|
|
||||||
const Container = styled('article')(({ theme }) => ({
|
const Container = styled('article')(({ theme }) => ({
|
||||||
padding: theme.spacing(4, 2),
|
padding: theme.spacing(1, 2),
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
gap: theme.spacing(3),
|
gap: theme.spacing(3),
|
||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
|
@ -44,6 +44,10 @@ const StyledUserAvatar = styled(UserAvatar)(({ theme }) => ({
|
|||||||
marginTop: theme.spacing(0.5),
|
marginTop: theme.spacing(0.5),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
const StyledMarkdown = styled(Markdown)(({ theme }) => ({
|
||||||
|
wordBreak: 'break-all',
|
||||||
|
}));
|
||||||
|
|
||||||
export const LatestProjectEvents: FC<{
|
export const LatestProjectEvents: FC<{
|
||||||
latestEvents: PersonalDashboardProjectDetailsSchema['latestEvents'];
|
latestEvents: PersonalDashboardProjectDetailsSchema['latestEvents'];
|
||||||
}> = ({ latestEvents }) => {
|
}> = ({ latestEvents }) => {
|
||||||
@ -73,10 +77,10 @@ export const LatestProjectEvents: FC<{
|
|||||||
locationSettings.locale,
|
locationSettings.locale,
|
||||||
)}
|
)}
|
||||||
</Timestamp>
|
</Timestamp>
|
||||||
<Markdown>
|
<StyledMarkdown>
|
||||||
{event.summary ||
|
{event.summary ||
|
||||||
'No preview available for this event'}
|
'No preview available for this event'}
|
||||||
</Markdown>
|
</StyledMarkdown>
|
||||||
</div>
|
</div>
|
||||||
</Event>
|
</Event>
|
||||||
);
|
);
|
||||||
|
@ -115,7 +115,6 @@ export const MyFlags: FC<Props> = ({
|
|||||||
disablePadding={true}
|
disablePadding={true}
|
||||||
sx={{
|
sx={{
|
||||||
height: '100%',
|
height: '100%',
|
||||||
overflow: 'auto',
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{flagData.flags.map((flag) => (
|
{flagData.flags.map((flag) => (
|
||||||
|
@ -106,7 +106,6 @@ export const listItemStyle = (theme: Theme) => ({
|
|||||||
});
|
});
|
||||||
|
|
||||||
export const StyledList = styled(List)(({ theme }) => ({
|
export const StyledList = styled(List)(({ theme }) => ({
|
||||||
overflowY: 'auto',
|
|
||||||
maxHeight: '400px',
|
maxHeight: '400px',
|
||||||
|
|
||||||
...onWideContainer({
|
...onWideContainer({
|
||||||
|
Loading…
Reference in New Issue
Block a user