diff --git a/.github/workflows/size-limit.yml b/.github/workflows/size-limit.yml new file mode 100644 index 0000000000..ed8009427c --- /dev/null +++ b/.github/workflows/size-limit.yml @@ -0,0 +1,31 @@ +name: 📦 Compressed Size(size-limit) + +on: + pull_request: + types: [opened, synchronize] + +# Cancel prev CI if new commit come +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +permissions: + contents: read + +jobs: + compressed-size: + permissions: + contents: read # for actions/checkout to fetch code + pull-requests: write # for preactjs/compressed-size-action to create PR comments + runs-on: ubuntu-latest + env: + CI_JOB_NUMBER: 1 + + steps: + - uses: actions/checkout@v3 + - uses: andresz1/size-limit-action@v1 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + pattern: "./dist/**/*.min.{js,css}" + build-script: "dist:esbuild-no-dup-check" + clean-script: "clean-lockfiles" diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md index 63b442f4af..39b16c91ae 100644 --- a/CHANGELOG.en-US.md +++ b/CHANGELOG.en-US.md @@ -15,6 +15,22 @@ timeline: true --- +## 4.22.2 + +`2022-07-28` + +- 💄 Adjust Collapse title click region which will be fully width when `collapsible=default` now. [#36761](https://github.com/ant-design/ant-design/pull/36761) +- Drawer + - 🐞 Fix Drawer not work in 360 browser. [#36748](https://github.com/ant-design/ant-design/pull/36748) + - 🐞 Revert back panel style into wrapper dom node in case developer use `contentWrapperStyle` for overwrite. [#36748](https://github.com/ant-design/ant-design/pull/36748) + - 🐞 Fix for the string type as `width/height` value and warning which should use number type instead. [#284](https://github.com/react-component/drawer/pull/284) + +## 4.22.1 + +`2022-07-27` + +- 🐞 Fix Drawer with percentage width display issue. [#36729](https://github.com/ant-design/ant-design/pull/36729) + ## 4.22.0 `2022-07-26` diff --git a/CHANGELOG.zh-CN.md b/CHANGELOG.zh-CN.md index 1d1d42029e..2b737f887c 100644 --- a/CHANGELOG.zh-CN.md +++ b/CHANGELOG.zh-CN.md @@ -15,6 +15,22 @@ timeline: true --- +## 4.22.2 + +`2022-07-28` + +- 💄 调整 Collapse 标题文本在 `collapsible=default` 时为完整宽度点击区域。[#36761](https://github.com/ant-design/ant-design/pull/36761) +- Drawer + - 🐞 修复 Drawer 在 360 浏览器不生效的问题。[#36748](https://github.com/ant-design/ant-design/pull/36748) + - 🐞 回滚将样式恢复至包裹层以防止原本通过 `contentWrapperStyle` 覆盖样式的用法。[#36748](https://github.com/ant-design/ant-design/pull/36748) + - 🐞 修复兼容以 string 类型作为 `width/height` 的用法,并且警告用户应当使用 number 类型。[#284](https://github.com/react-component/drawer/pull/284) + +## 4.22.1 + +`2022-07-27` + +- 🐞 修复 Drawer 使用百分比宽度时的展示问题。[#36729](https://github.com/ant-design/ant-design/pull/36729) + ## 4.22.0 `2022-07-26` diff --git a/components/collapse/style/index.less b/components/collapse/style/index.less index 5cecd1fc7e..2cccb86fbb 100644 --- a/components/collapse/style/index.less +++ b/components/collapse/style/index.less @@ -43,6 +43,10 @@ } } + .@{collapse-prefix-cls}-header-text { + flex: auto; + } + .@{collapse-prefix-cls}-extra { margin-left: auto; } @@ -55,6 +59,7 @@ .@{collapse-prefix-cls}-header-collapsible-only { cursor: default; .@{collapse-prefix-cls}-header-text { + flex: none; cursor: pointer; } } diff --git a/components/config-provider/__tests__/__snapshots__/components.test.js.snap b/components/config-provider/__tests__/__snapshots__/components.test.js.snap index 3925451002..4b55b7e76d 100644 --- a/components/config-provider/__tests__/__snapshots__/components.test.js.snap +++ b/components/config-provider/__tests__/__snapshots__/components.test.js.snap @@ -14431,12 +14431,12 @@ exports[`ConfigProvider components Drawer configProvider 1`] = ` />