[Bug] - grid layout / .grid-container
will overflow if in a space less than 250 px
#267
Labels
bug
Something isn't working
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 withmin(250px, 100%)
. This will have identical behavour above the threashold, but below it the grid will instead create one column filling its entire container.The text was updated successfully, but these errors were encountered: