I developed a Masonry-style image gallery using the material / image-list / mdc-image-list library.
My problem is that when I reduce the screen size, the images will reduce their size ("zoom") instead of reducing the number of images per line.
If I have 5 images in line, when reducing the screen, I would have 4, 3, 2 or 1 depending on the reduction, at this time this does not happen :(
Does anyone know why this happens and how can I solve it?
Thanks!
My code
<ul class="mdc-image-list mdc-image-list--masonry masonry-image-list">
<li class="mdc-image-list__item"
*ngFor="let image of list">
<img class="mdc-image-list__image"
[src]="image">
</li>
</ul>
Problem
As you can see in the image, I reduced the viewing screen and the images decreased the zoom ... the goal is that they do not decrease their size but decrease the number displayed per line.