From 98bafca7da83bbec9261ab8f86841d93c1c0a470 Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 20 Jul 2019 21:35:01 +0800 Subject: [PATCH] fix: Optimize select with search field style --- components/select/style/index.less | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/components/select/style/index.less b/components/select/style/index.less index 68131a7911..ca87e1b629 100644 --- a/components/select/style/index.less +++ b/components/select/style/index.less @@ -103,7 +103,6 @@ &-selected-value { float: left; max-width: 100%; - padding-right: 20px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; @@ -377,6 +376,12 @@ padding-right: 16px; } + &-selection--single { + .@{select-prefix-cls}-selection__rendered { + margin-right: 25px; + } + } + &-allow-clear &-selection--multiple &-selection__rendered, &-show-arrow &-selection--multiple &-selection__rendered { margin-right: 20px; // In case that clear button will overlap content