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单位
pull/1534/head
Eric Tian 5 years ago committed by tangjinzhou
parent d6234307d2
commit 50299632cc

@ -47,6 +47,6 @@
// Patch for popup adjust // Patch for popup adjust
.@{ant-prefix}-select-dropdown--multiple .@{ant-prefix}-select-dropdown-menu-item { .@{ant-prefix}-select-dropdown--multiple .@{ant-prefix}-select-dropdown-menu-item {
.@{empty-prefix-cls}-small { .@{empty-prefix-cls}-small {
margin-left: @control-padding-horizontal + 20; margin-left: 20px;
} }
} }

Loading…
Cancel
Save