Skip to content

Commit

Permalink
fix: restore flex-wrapping of grid (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
starpit committed Apr 18, 2023
1 parent ddb7a42 commit 10ced2a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,11 @@ export default class Grid extends React.PureComponent<GridProps> {
const flexDirection = this.legendPosition === "below" ? "column" : "row"
const alignItems = this.legendPosition === "below" ? "center" : "center"
const legendBoxProps = this.legendPosition === "below" ? { marginTop: 1 } : { marginLeft: 2 }
// const flexWrap = this.legendPosition === "right" ? "wrap" : "nowrap"
const flexWrap = this.legendPosition === "right" ? "wrap" : "nowrap"

return (
<Box
flexWrap={flexWrap}
flexDirection={flexDirection}
alignItems={alignItems}
justifyContent="center"
Expand Down

0 comments on commit 10ced2a

Please sign in to comment.