Skip to content

Commit

Permalink
fix(Space): vertical modifier (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
tenphi authored Jun 24, 2022
1 parent 64798ad commit f4ed612
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/serious-mails-remember.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@cube-dev/ui-kit": patch
---

fix(Space): condition for the vertical modifier
2 changes: 1 addition & 1 deletion src/components/layout/Space.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const Space = forwardRef(function Space(props: CubeSpaceProps, ref) {
<SpaceElement
{...filterBaseProps(otherProps, { eventProps: true })}
mods={{
vertical: direction === 'vertical',
vertical: direction === 'vertical' || otherProps.flow === 'column',
...mods,
}}
styles={styles}
Expand Down

0 comments on commit f4ed612

Please sign in to comment.