Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need Help: Not able to add gutter between the cards. #161

Open
Bikashd4332 opened this issue Nov 15, 2021 · 0 comments
Open

Need Help: Not able to add gutter between the cards. #161

Bikashd4332 opened this issue Nov 15, 2021 · 0 comments

Comments

@Bikashd4332
Copy link

I've specified, gutter in MaonsryOption.

// Masonry Options
const masonryOptions: MasonryOptions = {
	fitWidth: true,
	columnWidth: 365,
	gutter: '50',
	itemSelector: '.user-post',
	resize: true,
};

and used that like this.

  <Box
	  as={Masonry}
	  elementType="ul"
	  width="100%"
	  options={masonryOptions}
	  disableImagesLoaded={false}
	  updateOnEachImageLoad={false}
  >
	  {listOfCards.map((card) => (
		  <WallOfFameCard key={card.id} {...card} {...{ showOnlyWallOfFame }} />
	  ))}
  </Box>

These are my children components that I render

<Box as="li" className="user-post" css="list-style-type: none; text-indent: 0">
	<Box borderRadius="8px" overflow="clip" border="solid 1px" borderColor="black-10">
	.......

Yet I don't see any gutter between them.

image

@Bikashd4332 Bikashd4332 changed the title Not able to add gutter between the cards. Need Help: Not able to add gutter between the cards. Nov 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant