mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 16:06:28 +08:00
fix icon spacing in forms
This commit is contained in:
parent
20ef1f199c
commit
b0d55c8861
@ -157,7 +157,7 @@ form {
|
|||||||
:not(.@{ant-prefix}-input-group-addon)
|
:not(.@{ant-prefix}-input-group-addon)
|
||||||
> .@{ant-prefix}-select
|
> .@{ant-prefix}-select
|
||||||
.@{ant-prefix}-select-selection__clear {
|
.@{ant-prefix}-select-selection__clear {
|
||||||
right: 28px;
|
right: (@form-component-height / 2) + @form-feedback-icon-size - 2px;
|
||||||
}
|
}
|
||||||
> .@{ant-prefix}-select .@{ant-prefix}-select-selection-selected-value,
|
> .@{ant-prefix}-select .@{ant-prefix}-select-selection-selected-value,
|
||||||
:not(.@{ant-prefix}-input-group-addon)
|
:not(.@{ant-prefix}-input-group-addon)
|
||||||
@ -168,17 +168,17 @@ form {
|
|||||||
|
|
||||||
.@{ant-prefix}-cascader-picker {
|
.@{ant-prefix}-cascader-picker {
|
||||||
&-arrow {
|
&-arrow {
|
||||||
margin-right: 17px;
|
margin-right: (@form-component-height / 2) + @form-feedback-icon-size - 13px;
|
||||||
}
|
}
|
||||||
&-clear {
|
&-clear {
|
||||||
right: 28px;
|
right: (@form-component-height / 2) + @form-feedback-icon-size - 2px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fix issue: https://github.com/ant-design/ant-design/issues/7854
|
// Fix issue: https://github.com/ant-design/ant-design/issues/7854
|
||||||
.@{ant-prefix}-input-search:not(.@{ant-prefix}-input-search-enter-button) {
|
.@{ant-prefix}-input-search:not(.@{ant-prefix}-input-search-enter-button) {
|
||||||
.@{ant-prefix}-input-suffix {
|
.@{ant-prefix}-input-suffix {
|
||||||
right: 28px;
|
right: (@form-component-height / 2) + @form-feedback-icon-size - 2px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -187,7 +187,7 @@ form {
|
|||||||
.@{ant-prefix}-time-picker {
|
.@{ant-prefix}-time-picker {
|
||||||
&-icon,
|
&-icon,
|
||||||
&-clear {
|
&-clear {
|
||||||
right: 28px;
|
right: (@form-component-height / 2) + @form-feedback-icon-size - 2px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user