Merge "fix: update magic input component style"

This commit is contained in:
Zuul 2023-07-16 01:43:07 +00:00 committed by Gerrit Code Review
commit 6e87663a1a
2 changed files with 16 additions and 4 deletions

View File

@ -578,7 +578,11 @@ class MagicInput extends PureComponent {
/>
{this.renderMenu()}
</Col>
<Col className={styles['search-icon']}>
<Col
className={`${styles['search-icon']} ${
isFocus ? styles['search-icon-hidden'] : ''
}`}
>
<SearchOutlined />
</Col>
{this.renderClose()}

View File

@ -19,6 +19,7 @@
.ant-tag {
height: 24px;
margin-right: 4px;
margin-bottom: 1px;
padding: 0 4px;
color: #fff;
font-size: 10px;
@ -141,12 +142,19 @@
line-height: 32px;
}
.search-icon-hidden {
display: none;
}
.close-btn-col {
height: 24px;
line-height: 24px;
position: absolute;
top: 0;
right: 0;
height: 30px;
line-height: 30px;
.close-btn {
height: 24px !important;
height: 28px !important;
padding: 0;
border: none;
}