react-photo-gallery icon indicating copy to clipboard operation
react-photo-gallery copied to clipboard

Flexibility around margin prop

Open oyeanuj opened this issue 4 years ago • 0 comments

Hi @neptunian, thank you for creating this amazing library, and all the helpful examples!

An issue that I keep running into is wanting to customize the margin based on columns (single column vs multi-column), container width (for mobile layouts vs desktop views) or simply vertical vs horizontal margins.

I'm curious if there is any workaround and/or flexibility in how the margin prop is received - maybe a function like for columns? And maybe separating out the prop into the individual margins (top, right, bottom, left)?

oyeanuj avatar Apr 13 '20 01:04 oyeanuj