I'm making an image gallery using Semantic UI and I'm having some difficulties getting rid of the extra white space between images that aren't as big as others. Here's the link to the codesandbox repo I know Semantic UI's grid is based off of flexbox but I'm not sure how I can modify it.I want to make the grid come out like this
If I have an array of images such as:
const images = {
{id: 1, source: '/image1.jpg' },
{ id: 2, source: '/image2.jpg' },
{ id: 3, source: '/image3.jpg' }
}
And map through it in a grid:
<Grid columns={3}>
{images.map(image => (
<Grid.Column key={image.key}>
<Image src={image.source} />
</Grid.Column>
))}
</Grid>
If I use this solution, there will be a lot of white space in between all of the images because of the different sizes.