Skip to content

[Bug] - grid layout / .grid-container will overflow if in a space less than 250 px #267

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

Closed
tryoxiss opened this issue Mar 12, 2025 · 0 comments · Fixed by #269
Closed

[Bug] - grid layout / .grid-container will overflow if in a space less than 250 px #267

tryoxiss opened this issue Mar 12, 2025 · 0 comments · Fixed by #269
Labels
bug Something isn't working

Comments

@tryoxiss
Copy link
Contributor

What bug did you find in the codebase?

If the grid container is placed in a container which is less than 250px wide, it will overflow and create horizontal scrolling of the viewport. While not a major problem with 250px, it is relatively likely for one to customise these snippets and it can easily case problems if the size is increased.

To fix this, 250px can just be replaced with min(250px, 100%). This will have identical behavour above the threashold, but below it the grid will instead create one column filling its entire container.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant