Skip to content

Commit

Permalink
[DEV-1242]: fix mobile carousel margin (#533)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeAtUqido authored Jan 11, 2024
1 parent 3104837 commit de51361
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/thin-socks-relate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"nextjs-website": patch
---

Fix carousel margin on mobile
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,12 @@ const Newsroom = (props: INewsroom) => {
wrap='nowrap'
sx={{
overflowX: 'scroll',
paddingRight: '32px',
width: 'calc(100% + 32px)',
marginLeft: '-32px',
'div.MuiGrid-item:first-of-type': {
marginLeft: '16px',
},
'div.MuiGrid-item:last-of-type': {
marginRight: '32px',
},
}}
>
{items.map((item, i) => (
Expand Down

0 comments on commit de51361

Please sign in to comment.