ISBAT see Masonry Gallery Images be displayed in one column in mobile view.
Describe the bug:
The Masonry Gallery displays images in mobile view on iOS overlapped or all in one row and not in full height.
To reproduce:
- Create a new empty page
- Create a Group Block
- Create inside the Group Block the Masonry Gallery with some images
- Publish and visit the page in mobile view on an iOS device or with iOS in Browserstack
Expected behavior:
For smartphones, the masonry gallery should be displayed in one column. The images shouldn't overlap.
Screenshots:
Screenshot which shows the issue: https://d.pr/i/aly2Nf
Isolating the problem:
- [x] This bug happens with no other plugins activated
- [ ] This bug happens with a default WordPress theme active
- [ ] This bug happens without the Gutenberg plugin active
- [ ] I can reproduce this bug consistently using the steps above
WordPress version:
5.4.2
Gutenberg version:
8.2.1
The problem is from the Masonry library that we are using. Values for the absolute positioning are sometimes wrong. We are using the latest version (4.2.2) that is 3 years old now ...
Thank you for contributing. I am closing this issue and linking back to a primary issue regarding refactoring of the Masonry gallery block where we plan to address this ask. https://github.com/godaddy-wordpress/coblocks/issues/2078