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

Mininum number of columns #13

Open
jayrsmith opened this issue Jun 24, 2023 · 1 comment
Open

Mininum number of columns #13

jayrsmith opened this issue Jun 24, 2023 · 1 comment

Comments

@jayrsmith
Copy link

Hi, we've been using this component for a while with success but I have a request for a layout which uses auto columns apart from below a certain breakpoint where the minimum number of columns should be two.

Does anyone have advice on the easiest way to accomplish this?

@jayrsmith
Copy link
Author

Notes:

  • We use a grid layout across our site based on frs [fractions] so don't want to set a maxcolwidth in pixels.
  • I've tried using CSS to override --_masonry-layout-col-count below our smallest breakpoint but it seems the other column calculations made by this component don't align with this. I.e., Two columns are present but the content only appears in one of them.

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