Skip to content
This repository was archived by the owner on Mar 16, 2024. It is now read-only.

Commit 082b9a9

Browse files
committed
feat: improve space utilities
1 parent c2079a7 commit 082b9a9

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

dist/cherry.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cherry.module.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cherry-components",
3-
"version": "0.0.2-5",
3+
"version": "0.0.2-6",
44
"description": "Cherry React Components",
55
"main": "dist/cherry.js",
66
"module": "dist/cherry.module.js",

src/Layout/Space/Space.styles.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ const localStyle = (size, horizontal) =>
55
horizontal
66
? css`
77
display: inline-block;
8-
height: 0;
9-
width: ${size}px;
8+
max-height: 0;
9+
min-width: ${size}px;
10+
max-width: ${size}px;
1011
`
1112
: css`
1213
display: block;
13-
height: ${size}px;
14+
min-height: ${size}px;
15+
max-height: ${size}px;
1416
`;
1517

1618
const spaceStyles = (size, xs, sm, md, lg, xl, xxl, xxxl, horizontal) => css`

0 commit comments

Comments
 (0)