Skip to content

Commit

Permalink
fix(data-table): header will show scrollbar in some old browsers, closes
Browse files Browse the repository at this point in the history
  • Loading branch information
07akioni committed Nov 24, 2024
1 parent 53ac284 commit af64489
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

- Fix `n-time-picker`'s `use-12-hours` type error warning, closes [#4308](https://github.com/tusen-ai/naive-ui/issues/4308)
- Fix `input-number` the problem that the negative sign is replaced when the negative sign is entered
- Fix `n-data-table`'s header will show scrollbar in some old browsers, closes [#6557](https://github.com/tusen-ai/naive-ui/issues/6557).

### Features

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

- `n-time-picker` 的 `use-12-hours` 类型错误警告,关闭 [#4308](https://github.com/tusen-ai/naive-ui/issues/4308)
- 修复 `input-number` 存在负号时被替换的问题
- 修复 `n-data-table` 的 header 在部分浏览器中会出现滚动条,关闭 [#6557](https://github.com/tusen-ai/naive-ui/issues/6557)

### Features

Expand Down
2 changes: 1 addition & 1 deletion src/data-table/src/styles/index.cssr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ export default c([
transition: border-color .3s var(--n-bezier);
scrollbar-width: none;
`, [
c('&::-webkit-scrollbar', `
c('&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb', `
width: 0;
height: 0;
`)
Expand Down
2 changes: 1 addition & 1 deletion src/tabs/src/styles/index.cssr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ export default cB('tabs', `
overflow-y: auto;
scrollbar-width: none;
`, [
c('&::-webkit-scrollbar', `
c('&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb', `
width: 0;
height: 0;
`)
Expand Down

0 comments on commit af64489

Please sign in to comment.