care to demonstrate? given a dynamic collection of images where you don't know the aspect ratios beforehand
care to demonstrate? given a dynamic collection of images where you don't know the aspect ratios beforehand
Where it gets more complicated is getting them all to align horizontally at the bottom, which even this proposal doesn't do. Pinterest, of course, solved this by not having a "bottom."
In the photo demo all content is either 1-column or 2-column wide - and that already results in some very noticeable gaps. I don't get the impression that it can properly handle arbitrary aspect ratios. You're pretty much forced to stick to a single column width and fit all images to match, so not exactly an improvement over what we already have right now.
https://yakubin.com/photography/albumless/
https://yakubin.com/photography/album/kenya-2023/
Proper masonry layouts which fill all available space in practice actually crop some images. Leaving space around photos is required when you don’t want cropping and want to preserve aspect ratio. That’s why I prefer my solution over what JS libraries for masonry layouts do.