From 50299632cc245971dfef482b0268b156cef12df2 Mon Sep 17 00:00:00 2001 From: Eric Tian Date: Tue, 10 Dec 2019 15:04:25 +0800 Subject: [PATCH] fix: select empty not center (#1445) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 修复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单位 --- components/empty/style/index.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/empty/style/index.less b/components/empty/style/index.less index 8f2ace04e..15908a3bc 100644 --- a/components/empty/style/index.less +++ b/components/empty/style/index.less @@ -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; } }