From 72f531dce8451e332d38d30dd7c8a3e945b6bf4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=81=8F=E5=8F=B3?= Date: Thu, 11 Jul 2019 14:09:55 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20Optimize=20Cascader=20input=20st?= =?UTF-8?q?yle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit avoid to overclap arrow close #17582 --- components/cascader/style/index.less | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/cascader/style/index.less b/components/cascader/style/index.less index 02a398d7fd..71ad95fec3 100644 --- a/components/cascader/style/index.less +++ b/components/cascader/style/index.less @@ -11,6 +11,8 @@ // Keep it static for https://github.com/ant-design/ant-design/issues/16738 position: static; width: 100%; + // https://github.com/ant-design/ant-design/issues/17582 + padding-right: 24px; // Add important to fix https://github.com/ant-design/ant-design/issues/5078 // because input.less will compile after cascader.less background-color: transparent !important; @@ -60,7 +62,7 @@ width: 100%; height: 20px; margin-top: -10px; - padding: 0 @control-padding-horizontal; + padding: 0 20px 0 @control-padding-horizontal; overflow: hidden; line-height: 20px; white-space: nowrap;