Skip to content

Commit eab3423

Browse files
committed
fix: bug fix
1 parent 1b990a6 commit eab3423

File tree

2 files changed

+23
-19
lines changed

2 files changed

+23
-19
lines changed

frontend/src/components/layout/Workspace.vue

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -103,25 +103,28 @@ onMounted(async () => {
103103
</template>
104104
</el-input>
105105
<div class="popover-content">
106-
<div
107-
v-for="ele in defaultWorkspaceListWithSearch"
108-
:key="ele.name"
109-
class="popover-item"
110-
:class="currentWorkspace.id === ele.id && 'isActive'"
111-
@click="handleDefaultWorkspaceChange(ele)"
112-
>
113-
<el-icon size="16">
114-
<icon_moments_categories_outlined></icon_moments_categories_outlined>
115-
</el-icon>
106+
<el-scrollbar max-height="400px">
116107
<div
117-
:title="ele.name"
118-
class="datasource-name ellipsis"
119-
v-html="formatKeywords(ele.name)"
120-
></div>
121-
<el-icon size="16" class="done">
122-
<icon_done_outlined></icon_done_outlined>
123-
</el-icon>
124-
</div>
108+
v-for="ele in defaultWorkspaceListWithSearch"
109+
:key="ele.name"
110+
class="popover-item"
111+
:class="currentWorkspace.id === ele.id && 'isActive'"
112+
@click="handleDefaultWorkspaceChange(ele)"
113+
>
114+
<el-icon size="16">
115+
<icon_moments_categories_outlined></icon_moments_categories_outlined>
116+
</el-icon>
117+
<div
118+
:title="ele.name"
119+
class="datasource-name ellipsis"
120+
v-html="formatKeywords(ele.name)"
121+
></div>
122+
<el-icon size="16" class="done">
123+
<icon_done_outlined></icon_done_outlined>
124+
</el-icon>
125+
</div>
126+
</el-scrollbar>
127+
125128
<div v-if="!defaultWorkspaceListWithSearch.length" class="popover-item empty">
126129
{{ $t('model.relevant_results_found') }}
127130
</div>

frontend/src/views/system/embedded/Card.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const handleEmbedded = () => {
3838
<div class="card">
3939
<div class="name-icon">
4040
<img :src="Lock" width="32px" height="32px" />
41-
<span class="name">{{ name }}</span>
41+
<span class="name ellipsis" :title="name">{{ name }}</span>
4242
<span class="default" :class="isBase && 'is-base'">{{
4343
isBase ? $t('embedded.basic_application') : $t('embedded.advanced_application')
4444
}}</span>
@@ -88,6 +88,7 @@ const handleEmbedded = () => {
8888
font-weight: 500;
8989
font-size: 16px;
9090
line-height: 24px;
91+
max-width: 200px;
9192
}
9293
9394
.default {

0 commit comments

Comments
 (0)