Closed oliverdolgener closed 3 years ago
@oliverdolgener hey! thanks for reporting this issue :) to be honest, after rewriting to ReScript I didn't check if the Grid component works fine π
@oliverdolgener π Grid calculations have been fixed in v1.3.1
, now it accepts the ResponsiveProp
format and multiplied values (instead of "real" ones) π see the screenshot below, I'm using the same values as you provided in the original post: <Grid columns={4} gutter={8} margin={16} />
(edit: it's of course: <Grid columns={4} gutter={2} margin={4} />
)
First of all thank you so much for this awesome library. We're starting to use it in our production app and we're already loving it.
We notice some unexpected behaviour while playing around with the
Grid
component.Unfortunately it does not use the same multiplied values as all the other components so you have to pass in the 'real' values.
Another thing is that the
margin
prop only adds to the right edge. The left edge is using thegutter
value.It would also be very useful to provide multiple values for all three breakpoints (e.g 4 columns on mobile, 8 on tablet, 12 on desktop as well as margins and gutters)
That makes it a bit hard to work with. Maybe you could have a look.
We use it like that:
As you can see it applies 16px of
margin
to the right side but uses 8px ofgutter
for the left side. We were expectingmargin
to be applied to both sides.Thanks in advance!