Skip to content

Commit

Permalink
fix: no need for a container around ColumnsResponsive
Browse files Browse the repository at this point in the history
Similar to 0b1f9c1
  • Loading branch information
maartenbreddels committed Jun 20, 2023
1 parent 33c5dc9 commit 2a4404b
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions solara/components/columns.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,16 +140,16 @@ def cycle(value):
else:
raise ValueError(f"Invalid value for columns: {value}, should be None, int, or list/tuple.")

with rv.Container(class_=_combine_classes(classes), style_=style) as main:
with rv.Row(class_="flex-nowrap" if not wrap else "", no_gutters=not gutters, dense=gutters_dense):
for child, xsmall, small, medium, large, xlarge in zip(children, cycle(default), cycle(small), cycle(medium), cycle(large), cycle(xlarge)):
with rv.Col(
cols=xsmall,
sm=small,
md=medium,
lg=large,
xl=xlarge,
children=[child],
):
pass
class_ = _combine_classes([*(["flex-nowrap"] if not wrap else []), *classes])
with rv.Row(class_=class_ if not wrap else "", style_=style, no_gutters=not gutters, dense=gutters_dense) as main:
for child, xsmall, small, medium, large, xlarge in zip(children, cycle(default), cycle(small), cycle(medium), cycle(large), cycle(xlarge)):
with rv.Col(
cols=xsmall,
sm=small,
md=medium,
lg=large,
xl=xlarge,
children=[child],
):
pass
return main

0 comments on commit 2a4404b

Please sign in to comment.