Skip to content

Commit

Permalink
Change default to column
Browse files Browse the repository at this point in the history
  • Loading branch information
huong-li-nguyen committed Mar 5, 2025
1 parent 188f0b0 commit 780d8fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vizro-core/src/vizro/models/_flex.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ class Flex(VizroBaseModel):

type: Literal["flex"] = "flex"
direction: Literal["row", "column"] = Field(
default="row",
default="column",
description="Sets the direction of the flex items inside the container. Options are `row` or `column`."
"Defaults to `row`.",
"Defaults to `column`.",
)
gap: str = Field(
default=GAP_DEFAULT,
Expand All @@ -49,7 +49,7 @@ def build(self):
component_container = html.Div(
[],
style={"gap": self.gap},
className=f"d-flex f-{self.direction} {bs_wrap}",
className=f"d-flex flex-{self.direction} {bs_wrap}",
id=self.id,
)
return component_container

0 comments on commit 780d8fe

Please sign in to comment.