Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(n-input-number): misalignment issue when used in n-input-group with n-input-group-label #6656

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Fixes

- Fix `n-data-table` may have multiple expand trigger with tree data.
- Fix `n-input-number` misalignment issue when used in `n-input-group` with `n-input-group-label`, closes [#6608](https://github.com/tusen-ai/naive-ui/issues/6608).

## 2.40.4

Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Fixes

- 修复 `n-data-table` 在使用树形数据的时候出现多个展开 icon
- 修复 `n-input-number` 在 `n-input-group` 中配合 `n-input-group-label` 使用时两者错位的问题,关闭 [#6608](https://github.com/tusen-ai/naive-ui/issues/6608)

## 2.40.4

Expand Down
6 changes: 4 additions & 2 deletions src/input-number/src/styles/input-number.cssr.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { c, cB } from '../../../_utils/cssr'
import { cB } from '../../../_utils/cssr'

export default c([
export default cB('input-number', `
display: inline-flex;
`, [
cB('input-number-suffix', `
display: inline-block;
margin-right: 10px;
Expand Down