Adding margin between elements in a react list inside a react infinity loader

1.4k Views Asked by At

Is there any way I can add a gap between elements in a react-window-list inside a n infinity loader? Setting a margin doesn't work.

I found how to do that in the following way:

margin: 10px 0;
height: 50px !important;

I found this solution quite horrible, is there other way to do that?

ps: setting itemSize 50 instead of setting it in the css doesn't work.

0

There are 0 best solutions below