-
-
Notifications
You must be signed in to change notification settings - Fork 50.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to use any CSS units for layout width #10479
Conversation
Deploy preview for ant-design ready! Built with commit b180cb6 |
Codecov Report
@@ Coverage Diff @@
## master #10479 +/- ##
==========================================
- Coverage 86.48% 86.48% -0.01%
==========================================
Files 196 196
Lines 4795 4794 -1
Branches 1339 1338 -1
==========================================
- Hits 4147 4146 -1
Misses 645 645
Partials 3 3
Continue to review full report at Codecov.
|
Could you add a test case? |
160: Update dependency antd to v3.5.2 r=rehandalal a=renovate[bot] This Pull Request updates dependency [antd](https://github.com/ant-design/ant-design) from `v3.5.1` to `v3.5.2` <details> <summary>Release Notes</summary> ### [`v3.5.2`](https://github.com/ant-design/ant-design/releases/3.5.2) [Compare Source](ant-design/ant-design@3.5.1...3.5.2) - 🐞 Fixed `Cascader` displayRender z-index issue. [#​10433](`https://github.com/ant-design/ant-design/issues/10433`) - 🐞 Fixed `Button` Types of property 'ref' are incompatible. [#​10405](`https://github.com/ant-design/ant-design/issues/10405`) - 🐞 Fixed `Table` filter doesn't work on checkbox click. [#​10452](`https://github.com/ant-design/ant-design/issues/10452`) - 🐞 Fixed the height of `Form` item when checks position is dithered. [#​10445](`https://github.com/ant-design/ant-design/issues/10445`) - 🌟 Allow to use any CSS units for `Layout` width. [#​10479](`https://github.com/ant-design/ant-design/pull/10479`) --- - 🐞 修复 `Cascader` 的 displayRender 问题。[#​10433](`https://github.com/ant-design/ant-design/issues/10433`) - 🐞 修复 `Button` ref 不兼容问题。[#​10405](`https://github.com/ant-design/ant-design/issues/10405`) - 🐞 修复 `Table` 过滤器在复选框上不起作用。[#​10452](`https://github.com/ant-design/ant-design/issues/10452`) - 🐞 修复 `Form` 表单项校验位置高度时出现抖动问题。[#​10445](`https://github.com/ant-design/ant-design/issues/10445`) - 🌟 设置 `Layout` 宽度时,允许使用任何的 CSS 单位。 [#​10479](`https://github.com/ant-design/ant-design/pull/10479`) --- </details> --- This PR has been generated by [Renovate Bot](https://renovatebot.com). Co-authored-by: Renovate Bot <bot@renovateapp.com>
I appreciated your time and effort! It helps me a lot! |
👋
From docs we can see that
width
of layout can be number or string. For me it means I can use50%
,20em
and so on. Currently, only pixels are supported.This PR is going to fix it. It will allow to use any CSS units for layout width.
Resolves #9719 💯