Skip to content

Commit

Permalink
feat: personal dashboard scrollbars and spacing (#8493)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwasniew authored Oct 21, 2024
1 parent a6c7a5f commit 9fecc02
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion frontend/src/component/personalDashboard/ActionBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) => {
Expand Down Expand Up @@ -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>
);
Expand Down
1 change: 0 additions & 1 deletion frontend/src/component/personalDashboard/MyFlags.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ export const MyFlags: FC<Props> = ({
disablePadding={true}
sx={{
height: '100%',
overflow: 'auto',
}}
>
{flagData.flags.map((flag) => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ export const listItemStyle = (theme: Theme) => ({
});

export const StyledList = styled(List)(({ theme }) => ({
overflowY: 'auto',
maxHeight: '400px',

...onWideContainer({
Expand Down

0 comments on commit 9fecc02

Please sign in to comment.