Skip to content

Commit

Permalink
fix: select empty not center (#1445)
Browse files Browse the repository at this point in the history
* 修复select组件在mode为multiple或tags时,下拉选项为空时样式没有居中问题

外层的.ant-select-dropdown-menu-item样式设置了padding-right:@control-padding-horizontal + 20,得到padding的值为5px 32px 5px 12px,所以里层的.ant-empty-small的样式margin-left不需要加上@control-padding-horizontal

* 添加px单位
  • Loading branch information
tianxing0923 authored and tangjinzhou committed Dec 10, 2019
1 parent d623430 commit 5029963
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/empty/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@
// Patch for popup adjust
.@{ant-prefix}-select-dropdown--multiple .@{ant-prefix}-select-dropdown-menu-item {
.@{empty-prefix-cls}-small {
margin-left: @control-padding-horizontal + 20;
margin-left: 20px;
}
}

0 comments on commit 5029963

Please sign in to comment.