Skip to content

Commit

Permalink
fix(drawer-content): content doesn't scroll by default, ref #2003
Browse files Browse the repository at this point in the history
  • Loading branch information
07akioni committed Dec 27, 2021
1 parent ebfffe8 commit a241193
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
- Fix `n-tabs`'s `tabTextColorActiveSegment` and `tabTextColorHoverSegment` theme variables not working, closes [#2038](https://github.com/TuSimple/naive-ui/issues/2038).
- Fix `n-image` may keep keyboard handler after mounted.
- Fix `n-image` can't exit preview after esc is pressed when there's only 1 image, closes [#2042](https://github.com/TuSimple/naive-ui/issues/2042).
- Fix `n-drawer-content`'s content doesn't scroll by default, ref [#2003](https://github.com/TuSimple/naive-ui/issues/2003).

## 2.23.1 (2021-12-20)

Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
- 修复 `n-tabs` `tabTextColorActiveSegment``tabTextColorHoverSegment` 主题变量不生效,关闭 [#2038](https://github.com/TuSimple/naive-ui/issues/2038)
- 修复 `n-image` 卸载时可能未解绑键盘事件监听器
- 修复 `n-image` 在仅有一张图片时按 esc 无法退出预览,关闭 [#2042](https://github.com/TuSimple/naive-ui/issues/2042)
- 修复 `n-drawer-content` 的内容区域默认无法滚动,关于 [#2003](https://github.com/TuSimple/naive-ui/issues/2003)

## 2.23.1 (2021-12-20)

Expand Down
1 change: 1 addition & 0 deletions src/drawer/src/styles/index.cssr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export default c([
]),
cB('drawer-body', `
flex: 1 0 0;
overflow: hidden;
`),
cB('drawer-body-content-wrapper', `
box-sizing: border-box;
Expand Down

0 comments on commit a241193

Please sign in to comment.