Skip to content

Commit

Permalink
fix(notification): Added max-width for mobile responsiveness (#5173)
Browse files Browse the repository at this point in the history
Co-authored-by: 07akioni <[email protected]>
  • Loading branch information
KyleSmith0905 and 07akioni authored Dec 19, 2023
1 parent 817a4cb commit a567d98
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 @@ -7,6 +7,7 @@
- Fix n-space vnode reuse problem caused by filtering out comment nodes of slot, closes [#5136](https://github.com/tusen-ai/naive-ui/issues/5136).
- Fix `n-data-table`'s prop `pagination`'s `default-page-size` and `default-page` not work in uncontrolled mode, closes [#5201](https://github.com/tusen-ai/naive-ui/issues/5201).
- Fix `n-time-picker` formatting (format="HH: mm: ss. SSS") preventing modification of milliseconds in the edit box, closes [#5224](https://github.com/tusen-ai/naive-ui/issues/5224).
- Fix `n-notification` notification clips out of screen when screen width is less than 400px wide.

### 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 @@ -7,6 +7,7 @@
- 修复 `n-space` 插槽过滤了注释节点导致节点复用问题,关闭 [#5136](https://github.com/tusen-ai/naive-ui/issues/5136)
- 修复 `n-data-table` 属性 `pagination` 在非受控模式下的默认分页大小 `default-page-size` 和当前页数 `default-page` 不生效,关闭 [#5201](https://github.com/tusen-ai/naive-ui/issues/5201)
- 修复 `n-time-picker` 时间选择器格式化(`format="HH:mm:ss.SSS"`)后无法在编辑框内修改毫秒数的问题,关闭 [#5224](https://github.com/tusen-ai/naive-ui/issues/5224)
- 修复 `n-notification` 通知在屏幕宽度小于 400px 的时候溢出屏幕

### Features

Expand Down
1 change: 1 addition & 0 deletions src/notification/src/styles/index.cssr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ export default c([
padding-left: var(--n-padding-left);
padding-right: var(--n-padding-right);
width: var(--n-width);
max-width: calc(100vw - 28px - 16px);
border-radius: var(--n-border-radius);
box-shadow: var(--n-box-shadow);
box-sizing: border-box;
Expand Down

0 comments on commit a567d98

Please sign in to comment.