Skip to content

Commit 25ce8de

Browse files
Hoang Nguyenneogismm
authored andcommitted
UI: Fixes suffix icon on project selector not work (apache#6671)
* fix the animation suffix icon of select * move style code
1 parent 56ecef0 commit 25ce8de

4 files changed

Lines changed: 11 additions & 3 deletions

File tree

ui/src/components/header/ProjectMenu.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<span>{{ $t('label.projects') }}</span>
3434
</template>
3535
<span class="custom-suffix-icon">
36-
<ProjectOutlined v-if="!loading" />
36+
<ProjectOutlined v-if="!loading" class="ant-select-suffix" />
3737
<LoadingOutlined v-else />
3838
</span>
3939
</a-tooltip>

ui/src/components/header/SamlDomainSwitcher.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<span>{{ $t('label.domain') }}</span>
3737
</template>
3838
<span class="custom-suffix-icon">
39-
<BlockOutlined v-if="!loading" />
39+
<BlockOutlined v-if="!loading" class="ant-select-suffix" />
4040
<LoadingOutlined v-else />
4141
</span>
4242
</a-tooltip>

ui/src/style/ant-overwrite/ant-form.less

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,11 @@
1818
.ant-form .ant-form-item {
1919
margin-bottom: 6px;
2020
}
21+
22+
.ant-select-arrow .ant-select-suffix svg {
23+
transition: transform .3s, -webkit-transform .3s;
24+
}
25+
26+
.ant-select-open .ant-select-arrow .ant-select-suffix svg {
27+
transform: rotateZ(-180deg);
28+
}

ui/src/views/AutogenView.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
:filterOption="(input, option) => {
6565
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
6666
}" >
67-
<template #suffixIcon><filter-outlined /></template>
67+
<template #suffixIcon><filter-outlined class="ant-select-suffix" /></template>
6868
<a-select-option
6969
v-if="['Admin', 'DomainAdmin'].includes($store.getters.userInfo.roletype) && ['vm', 'iso', 'template'].includes($route.name)"
7070
key="all"

0 commit comments

Comments
 (0)