Skip to content

Commit 91f884b

Browse files
committed
feat: workspaceDropdown tag
1 parent faebf60 commit 91f884b

File tree

1 file changed

+9
-3
lines changed
  • ui/src/components/workspace-dropdown

1 file changed

+9
-3
lines changed

ui/src/components/workspace-dropdown/index.vue

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,17 @@
1717
<el-dropdown-menu v-loading="loading">
1818
<el-dropdown-item v-for="item in filterData" :key="item.id"
1919
:class="`${item.id === currentWorkspace?.id ? 'active' : ''} flex-between`" @click="changeWorkspace(item)">
20-
<div class="flex align-center">
20+
<div class="flex align-center" style="overflow: hidden;">
2121
<AppIcon class="mr-8" iconName="app-workspace" style="font-size: 16px"></AppIcon>
22-
<span class="ellipsis" :title="item.name">
22+
<span class="ellipsis" style="flex:1" :title="item.name">
2323
{{ item.name }}
2424
</span>
25+
<TagGroup
26+
v-if="item.role_name"
27+
class="ml-8"
28+
size="small"
29+
:tags="item.role_name"
30+
/>
2531
</div>
2632
<el-icon v-show="item.id === currentWorkspace?.id" class="ml-8" style="font-size: 16px; margin-right: 0">
2733
<Check />
@@ -86,6 +92,6 @@ watch([() => props.data, () => filterText.value], () => {
8692
</style>
8793
<style lang="scss">
8894
.workspace-dropdown-popper {
89-
width: 280px;
95+
width: 340px;
9096
}
9197
</style>

0 commit comments

Comments
 (0)