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
fix: 🐛 Fix Table filter menu have no height #23272
Conversation
when less version is 2.x close #23166
@@ -447,7 +447,7 @@ | |||
.@{ant-prefix}-dropdown-menu { | |||
// https://github.com/ant-design/ant-design/issues/4916 | |||
// https://github.com/ant-design/ant-design/issues/19542 | |||
max-height: calc(100vh - 130px); | |||
max-height: ~'calc(100vh - 130px)'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
less 2 不支持上面的写法。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
max-height: calc(~'100vh - 130px');
这种是不是也是less 2支持的?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不了解,可以试试。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
试了下好像都可以,less 2/3也都支持这种
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
本质上和当前的改法是一样的。
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 7f38c6a:
|
🤔 This is a ...
🔗 Related issue link
close #23166
💡 Background and solution
when less version is 2.x
📝 Changelog
☑️ Self Check before Merge