Skip to content

Commit

Permalink
chore: remove some stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasheartman committed Nov 4, 2024
1 parent cfded6b commit f73587e
Showing 1 changed file with 27 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,53 +32,46 @@ const ItemContent = styled('span')(({ theme }) => ({
},
}));

const ListItemRow = styled('li')(({ theme }) => {
const narrowListStyle = {
flexFlow: 'column',
alignItems: 'flex-start',
justifyContent: 'unset',
'& + li': {
marginTop: theme.spacing(5),
},
};
const onNarrowWidget = (css: object) => ({
'@container (max-width: 400px)': css,
'@supports not (container-type: inline-size)': {
'@media (max-width: 400px)': css,
},
});

const ListItemRow = styled('li')(({ theme }) => {
return {
'@container (max-width: 400px)': narrowListStyle,

'@supports not (container-type: inline-size)': {
[theme.breakpoints.down('sm')]: narrowListStyle,
},

display: 'flex',
flexFlow: 'row',
justifyContent: 'space-between',
alignItems: 'center',
gap: theme.spacing(1),

...onNarrowWidget({
flexFlow: 'column',
alignItems: 'flex-start',
justifyContent: 'unset',
'& + li': {
marginTop: theme.spacing(5),
},
}),
};
});

const ResourceList = styled('ul')(({ theme }) => {
const narrowStyles = {
'li + li': {
marginTop: theme.spacing(4),
},
};
const ResourceList = styled('ul')(({ theme }) => ({
margin: 0,
listStyle: 'none',
padding: 0,
'li + li': {
marginTop: theme.spacing(2),
},

return {
margin: 0,
listStyle: 'none',
padding: 0,
...onNarrowWidget({
'li + li': {
marginTop: theme.spacing(2),
},

'@container (max-width: 400px)': narrowStyles,

'@supports not (container-type: inline-size)': {
[theme.breakpoints.down('sm')]: narrowStyles,
marginTop: theme.spacing(4),
},
};
});
}),
}));

export const ProjectResources = () => {
const projectId = useRequiredPathParam('projectId');
Expand Down

0 comments on commit f73587e

Please sign in to comment.