Closed jaycincotta closed 2 years ago
You can work this around by applying negative margin to the gallery container.
You are also more than welcome to take a look at react-photo-album (npm, GitHub) since react-photo-gallery is no longer maintained.
the link to react-photo-album is broken.
Updated the links above.
Found it! https://github.com/igordanchenko/react-photo-album
It looks like a brand new repo just started this week. Is that right, Igor?
That doesn't sound right. The first release was published in December 2021.
My bad. react-photo-album looks promising. I've opened a feature request on repo related to upgrading from react-photo-gallery
Could a
gap
property be added to Gallery?Currently, Gallery accepts a
margin
property to add space around each elements in the gallery. Since margin is also applied to the external edges of the gallery, the gallery as a whole is offset from it's container. This is a general problem with grids and gap is perfect for internal margins.An alternative to adding a new property would be to refine the semantics of the existing
margin
property to only apply to internal margins.