Skip to content

Commit

Permalink
fix(next): fix Space align is not work (#2531)
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang committed Nov 28, 2021
1 parent 5a2605e commit 3f4afef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/next/src/space/index.tsx
Expand Up @@ -45,16 +45,17 @@ export const Space: React.FC<ISpaceProps> = ({
}
}
const _size = size ?? layout?.spaceGap ?? 8
const _align = getAlign()
return (
<Box
{...props}
spacing={isNumberLike(_size) ? _size : spaceSize[_size] || 8}
style={{
alignItems: 'center',
alignItems: _align,
display: 'inline-flex',
...props.style,
}}
align={getAlign()}
align={_align}
direction={getDirection()}
>
{toArray(props.children, { keepEmpty: true }).map((child, index) => (
Expand Down

0 comments on commit 3f4afef

Please sign in to comment.