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

How to make the component fully responsive with screen size #60

Open
vikasr111 opened this issue Oct 20, 2021 · 0 comments
Open

How to make the component fully responsive with screen size #60

vikasr111 opened this issue Oct 20, 2021 · 0 comments

Comments

@vikasr111
Copy link

Hi,

First of all amazing library and so easy to use in React projects. I was wondering if there's a way to set the width of the container and images in % so that the whole component will be fully responsive. I tried setting % width in masonryConfig but it doesn't work.

Please look at the screenshot for reference. Notice the empty area on the sides, it'd look great if there was a way to cover it.

Screenshot 2021-10-20 at 8 35 46 AM

In the other image when screen width is smaller, the component overflows outside of area.

Screenshot 2021-10-20 at 8 38 21 AM

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