2 hours ago · Tech · hide

A week or two ago, I decided to finally improve some small things around this website when it comes to photos. There were two things that were bugging me but, due to time constraints, I hadn’t done them yet. But what are these things, you may ask. The first one is a pre-computed masonry layout for my photo archive, and the other one is improved photo lightboxes. Pre-Computed Masonry Layouts The first improvement was tackling the photo archive in order to properly show the full photos. Before, I was using grid-lanes where available, otherwise defaulting to a grid of squares, just like the apps we know. Unfortunately, the only browser that supports grid-lanes out of the box is Safari, so most users were seeing cropped photos. While the support is improving, it’s still far from being Baseline. Chromium and Firefox have it behind a flag. Seeing Paul’s Photostream made it clear that it was possible to do this without JavaScript. The trick is computing all photo positions beforehand, such…

Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town