Skip to content

Commit 0d88893

Browse files
committed
fix: styles applied to mansory
1 parent c090f3d commit 0d88893

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

packages/material-ui/src/ImageList/ImageList.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const ImageListRoot = experimentalStyled(
3434
slot: 'Root',
3535
overridesResolver,
3636
},
37-
)(({ theme, styleProps }) => {
37+
)(({ styleProps }) => {
3838
/* Styles applied to the root element. */
3939
return {
4040
display: 'grid',
@@ -44,11 +44,7 @@ const ImageListRoot = experimentalStyled(
4444
WebkitOverflowScrolling: 'touch', // Add iOS momentum scrolling.
4545
/* Styles applied to the root element if `variant="masonry"`. */
4646
...(styleProps.variant === 'masonry' && {
47-
position: 'absolute',
48-
zIndex: theme.zIndex.appBar,
49-
top: 0,
50-
left: 'auto',
51-
right: 0,
47+
display: 'block',
5248
}),
5349
/* Styles applied to the root element if `variant="quilted"`. */
5450
...(styleProps.variant === 'quilted' && {}),

0 commit comments

Comments
 (0)