We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
set Sider prop collapsedWidth={60} collapse the Sider
Menu width is 60
Menu width is 80 (which is the defaultValue of the collapsedWidth prop in Sider)
notice that the .ant-menu-inline-collapsed class seem to has hardcode style: width: 80px
The text was updated successfully, but these errors were encountered:
收起的时候 动态给 Menu 加一个 style={{ width: 60 }}
style={{ width: 60 }}
Sorry, something went wrong.
fix(layout-sider): menu-item width is wrong when collapsedWidth is set (
a39e51a
#30357) close #30355
Successfully merging a pull request may close this issue.
Reproduction link
Steps to reproduce
set Sider prop collapsedWidth={60}
collapse the Sider
What is expected?
Menu width is 60
What is actually happening?
Menu width is 80 (which is the defaultValue of the collapsedWidth prop in Sider)
notice that the .ant-menu-inline-collapsed class seem to has hardcode style:
width: 80px
The text was updated successfully, but these errors were encountered: