fix(button): shrink abnormally in certain scenarios when using the circle prop (#1562)

This commit is contained in:
XieZongChen 2021-11-11 11:35:41 -06:00 committed by GitHub
parent 5f6bff0360
commit 1ef5569216
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,7 @@
### Fixes
- Fix `n-grid` suffix NGridItem does not set right span when collapsed, closes [#1530](https://github.com/TuSimple/naive-ui/issues/1530).
- Fix `n-button` to shrink abnormally in certain scenarios when using the `circle` prop, closes [#1557](https://github.com/TuSimple/naive-ui/issues/1557).
### Feats

View File

@ -5,6 +5,7 @@
### Fixes
- 修复 `n-grid` 收缩时后缀 girdItem 设置的 span 不起作用,关闭 [#1530](https://github.com/TuSimple/naive-ui/issues/1530)
- 修复 `n-button` 使用 `circle` 属性时在特定场景异常收缩的问题,关闭 [#1557](https://github.com/TuSimple/naive-ui/issues/1557)
### Feats

View File

@ -53,6 +53,7 @@ export default c([
border: none;
display: inline-flex;
flex-wrap: nowrap;
flex-shrink: 0;
align-items: center;
justify-content: center;
user-select: none;