Skip to content
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
8 changes: 8 additions & 0 deletions CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# CHANGELOG

## NEXT_VERSION

`NEXT_VERSION`

### Fixes

- Fix `n-data-table` cell misalignment when using `ellipsis.lineClamp`, closes [#7345](https://github.com/tusen-ai/naive-ui/issues/7345) by [@pstrh](https://github.com/pstrh).

## 2.43.2

### Fixes
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# CHANGELOG

## NEXT_VERSION

`NEXT_VERSION`

### Fixes

- 修复 `n-data-table` 使用 `ellipsis.lineClamp` 时单元格错位的问题,关闭 [#7345](https://github.com/tusen-ai/naive-ui/issues/7345) by [@pstrh](https://github.com/pstrh)

## 2.43.2

### Fixes
Expand Down
10 changes: 10 additions & 0 deletions src/data-table/src/styles/index.cssr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,11 @@ export default c([
white-space: nowrap;
max-width: 100%;
`),
cB('ellipsis', [
cM('line-clamp', `
vertical-align: middle;
`)
]),
cM('hover', `
background-color: var(--n-merged-th-color-hover);
`),
Expand Down Expand Up @@ -409,6 +414,11 @@ export default c([
vertical-align: bottom;
max-width: calc(100% - var(--indent-offset, -1.5) * 16px - 24px);
`),
cB('ellipsis', [
cM('line-clamp', `
vertical-align: middle;
`)
]),
cM('selection, expand', `
text-align: center;
padding: 0;
Expand Down