Repeating groups
Anything list related
Repeating groups follow specific rules to be compliant with openBuild. In order for RG's to have the same alignment, we have a specific RG containers containing our RG's, ensuring 20px gap between our items as well as 20px padding on both sides.

Element
Padding
RG container
10px Left/Right
RG
-
Outer
10px Left/Right/Top/Bottom
Inner
Depends (how the card is designed)
RG number of columns
While Bubble allows you to set up the number of columns you want in your RG, this number is fixed. With openBuild framework, you can play with RG column min width to get the desired layout.
RG column min wdth
# of columns on 1280 px
# of columns on 768px
# of columns on 320px
280px
4
2
1
224px
5
3
1
204px
6
4
1
Set up max column # (CSS)
Another possibility offered to set up the maximum number of RG column you need is to use custom CSS.
<style>
@media only screen and (max-width: 640px) {
#rg-col-2 {
grid-template-columns: repeat(1, minmax(280px, 1fr))!important;
}
#rg-col-3 {
grid-template-columns: repeat(1, minmax(280px, 1fr))!important;
}}
@media only screen and (min-width: 641px) and (max-width: 960px) {
#rg-col-3 {
grid-template-columns: repeat(2, minmax(280px, 1fr))!important;
}}
</style>
Last updated