mmmnmnm / wordpress

1 stars 1 forks source link

Wrong grid render #29

Open gammaw opened 2 years ago

gammaw commented 2 years ago

Bug (sometimes, non-det behavior): image

Root cause seems to be (wrongly calculated height value): image

Hints: Masonry, Jetpack, infinite-wrap class

gammaw commented 2 years ago

More hints (along the lines: Masonry library/image loading may be causing the bug):

kovacsbori commented 1 year ago

The problem here is caused by using vertical image ratios (e.g. height > width). I had to upload an image like this to reproduce locally, worked fine with squares/horizontal pictures. The lazy fix is to crop our featured images :)

kovacsbori commented 1 year ago

I was wrong before. I could reproduce the issue with only square and landscape images as well. However, the grid seems stable when using the same image ratio for all articles