Skip to content

Commit 7a03f56

Browse files
authored
修复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
1 parent e3f867b commit 7a03f56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/empty/style/index.less

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@
4747
// Patch for popup adjust
4848
.@{ant-prefix}-select-dropdown--multiple .@{ant-prefix}-select-dropdown-menu-item {
4949
.@{empty-prefix-cls}-small {
50-
margin-left: @control-padding-horizontal + 20;
50+
margin-left: 20;
5151
}
5252
}

0 commit comments

Comments
 (0)