Skip to content

Commit 5029963

Browse files
tianxing0923tangjinzhou
authored andcommitted
fix: select empty not center (#1445)
* 修复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单位
1 parent d623430 commit 5029963

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: 20px;
5151
}
5252
}

0 commit comments

Comments
 (0)