fix style of Input.Search with enterButton (#14397)

fix #14396
This commit is contained in:
zombieJ 2019-01-17 16:52:12 +08:00 committed by GitHub
parent 2a99fe713a
commit 321117c5e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 7 deletions

View File

@ -1,8 +1,8 @@
---
order: 4
title:
zh-CN: 搜索框
en-US: Search box
zh-CN: 搜索框
en-US: Search box
---
## zh-CN

View File

@ -27,11 +27,24 @@
}
}
&.@{search-prefix}-enter-button > .@{ant-prefix}-input {
padding-right: 46px;
}
&.@{search-prefix}-enter-button {
display: table;
&.@{search-prefix}-enter-button > .@{ant-prefix}-input-suffix {
right: 0;
> * {
display: table-cell;
}
> .@{ant-prefix}-input {
.input;
width: 100%;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
border-right: 0;
}
> .@{ant-prefix}-input-suffix {
position: static;
transform: none;
}
}
}