Skip to content

Commit

Permalink
Merge pull request #2462 from graphcommerce-org/fix/fix-category-chil…
Browse files Browse the repository at this point in the history
…dren-layout

fix issue where CategoryChildren would cause layout to break on mobile
  • Loading branch information
paales authored Dec 20, 2024
2 parents dc9a3c5 + 6031bba commit 3bb93cd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/happy-melons-train.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphcommerce/magento-category": patch
---

fix issue where CategoryChildren would cause layout to break on mobile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ export function CategoryChildren(props: CategoryChildrenProps) {
<ScrollerProvider scrollSnapAlign='none'>
<Box
className={classes.container}
sx={[{ display: 'flex' }, ...(Array.isArray(sx) ? sx : [sx])]}
sx={[
{ display: 'flex', width: '100%', overflow: 'hidden' },
...(Array.isArray(sx) ? sx : [sx]),
]}
>
<Scroller
className={classes.scroller}
Expand Down

0 comments on commit 3bb93cd

Please sign in to comment.