Commit 4c6060dc890811de19b66cdc1b03bf54ea88286c
1 parent
66f807ed
fixed Select multiple mode icon style position wrong
Showing
1 changed file
with
5 additions
and
1 deletions
Show diff stats
src/styles/components/select.less
| @@ -231,6 +231,7 @@ | @@ -231,6 +231,7 @@ | ||
| 231 | .select-item(@select-prefix-cls, @select-item-prefix-cls); | 231 | .select-item(@select-prefix-cls, @select-item-prefix-cls); |
| 232 | 232 | ||
| 233 | .@{select-prefix-cls}-multiple .@{select-item-prefix-cls} { | 233 | .@{select-prefix-cls}-multiple .@{select-item-prefix-cls} { |
| 234 | + position: relative; | ||
| 234 | &-selected{ | 235 | &-selected{ |
| 235 | color: @selected-color; | 236 | color: @selected-color; |
| 236 | background: #fff; | 237 | background: #fff; |
| @@ -246,10 +247,13 @@ | @@ -246,10 +247,13 @@ | ||
| 246 | 247 | ||
| 247 | &-selected:after{ | 248 | &-selected:after{ |
| 248 | .ivu-icon(); | 249 | .ivu-icon(); |
| 249 | - float: right; | 250 | + //float: right; |
| 250 | font-size: 24px; | 251 | font-size: 24px; |
| 251 | content: '\F3FD'; | 252 | content: '\F3FD'; |
| 252 | color: @selected-color; | 253 | color: @selected-color; |
| 254 | + position: absolute; | ||
| 255 | + top: 2px; | ||
| 256 | + right: 16px; | ||
| 253 | } | 257 | } |
| 254 | } | 258 | } |
| 255 | 259 |