-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Masonry] Place items to the left when there are less objects than specified in the column
prop
#32873
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add a screenshot fixture for it, it's more reliable test for this type of scenarios.
@mnajdova I agree! |
column
propcolumn
prop
This could have introduce a new problem where the Steps to reproduce go to https://mui.com/material-ui/react-image-list/#title-bar-below-image-masonry and remove all but 2 data points in the code.
|
Closes #32696
Problem:
Masonry
whilecolumns
prop is set to a value greater than 2, e.g. 3 or 4, items are stretched across the masonry instead of being placed together at the left.Solution:
Change
align-content
property ofMasonryRoot
component fromspace-between
toflex-start
.Codesandbox Before
Codesandbox After
p.s. Argos changes are expected