Browse Source
Merge pull request #17583 from ant-design/fix-cascader-style
fix: 💄 Optimize Cascader input style
pull/17586/head
偏右
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
1 deletions
-
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; |
|
|
|