better height

This commit is contained in:
Toby Brown 2024-01-26 19:29:22 +00:00
parent 0810b4d7aa
commit 827a6c2736
2 changed files with 4 additions and 3 deletions

View file

@ -19,10 +19,11 @@ export default function Project({ title, description, color, img, itemId }) {
color: 'white',
overflow: 'clip',
width: ['100vw', '50rem', '70rem'],
height: '100%',
height: '50vh',
transition: '700ms cubic-bezier(0.075, 0.02, 0.165, 1)',
transformOrigin: 'center',
mx: 16
mx: 16,
ml: `${itemId === 0 && 'calc(50vw - 35rem)'}`
}}
itemId={itemId}
>

View file

@ -87,7 +87,7 @@ const SlackPage = () => {
onMouseEnter={disableScroll}
onMouseLeave={enableScroll}
>
<Box sx={{ ml: ['2vw', '25vw'] }}>
<Box>
<ScrollMenu Footer={Arrows} onWheel={onWheel}>
{projects.map(project => (
<Project