Skip to content

Commit 827a6c2

Browse files
committed
better height
1 parent 0810b4d commit 827a6c2

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

components/slack/project.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ export default function Project({ title, description, color, img, itemId }) {
1919
color: 'white',
2020
overflow: 'clip',
2121
width: ['100vw', '50rem', '70rem'],
22-
height: '100%',
22+
height: '50vh',
2323
transition: '700ms cubic-bezier(0.075, 0.02, 0.165, 1)',
2424
transformOrigin: 'center',
25-
mx: 16
25+
mx: 16,
26+
ml: `${itemId === 0 && 'calc(50vw - 35rem)'}`
2627
}}
2728
itemId={itemId}
2829
>

pages/slack.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ const SlackPage = () => {
8787
onMouseEnter={disableScroll}
8888
onMouseLeave={enableScroll}
8989
>
90-
<Box sx={{ ml: ['2vw', '25vw'] }}>
90+
<Box>
9191
<ScrollMenu Footer={Arrows} onWheel={onWheel}>
9292
{projects.map(project => (
9393
<Project

0 commit comments

Comments
 (0)