Skip to content

Commit a1cff81

Browse files
perf: Partial icon updates
1 parent 4865a09 commit a1cff81

File tree

8 files changed

+40
-7
lines changed

8 files changed

+40
-7
lines changed

ui/src/components/app-icon/icons/menu.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,27 @@ export default {
282282
])
283283
},
284284
},
285+
'app-user-chat-active': {
286+
iconReader: () => {
287+
return h('i', [
288+
h(
289+
'svg',
290+
{
291+
style: { height: '100%', width: '100%' },
292+
viewBox: '0 0 1024 1024',
293+
version: '1.1',
294+
xmlns: 'http://www.w3.org/2000/svg',
295+
},
296+
[
297+
h('path', {
298+
d: 'M213.333333 298.666667a213.333333 213.333333 0 1 0 426.752-0.085334A213.333333 213.333333 0 0 0 213.333333 298.666667zM298.666667 554.666667a256 256 0 0 0-256 256v108.330666c0 23.552 19.2 42.666667 42.666666 42.666667h682.666667c23.466667 0 42.666667-19.114667 42.666667-42.666667V810.666667a256 256 0 0 0-256-256H298.666667zM960 384h-213.333333a21.333333 21.333333 0 0 0-21.333334 21.333333v42.666667a21.333333 21.333333 0 0 0 21.333334 21.333333h213.333333a21.333333 21.333333 0 0 0 21.333333-21.333333v-42.666667a21.333333 21.333333 0 0 0-21.333333-21.333333zM960 554.666667h-85.333333a21.333333 21.333333 0 0 0-21.333334 21.333333v42.666667a21.333333 21.333333 0 0 0 21.333334 21.333333h85.333333a21.333333 21.333333 0 0 0 21.333333-21.333333v-42.666667a21.333333 21.333333 0 0 0-21.333333-21.333333z',
299+
fill: 'currentColor',
300+
}),
301+
],
302+
),
303+
])
304+
},
305+
},
285306
'app-resource-management': {
286307
iconReader: () => {
287308
return h('i', [

ui/src/router/modules/application-detail.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ const ApplicationDetailRouter = {
155155
name: 'applicationChatUser',
156156
meta: {
157157
icon: 'app-user-chat',
158-
iconActive: 'app-user-chat',
158+
iconActive: 'app-user-chat-active',
159159
title: 'views.chatUser.title',
160160
active: 'chat-user',
161161
parentPath: '/application/:from/:id/:type',

ui/src/router/modules/document.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,9 @@ const DocumentRouter = {
201201
name: 'KnowledgeChatUser',
202202
meta: {
203203
icon: 'app-user-chat',
204-
iconActive: 'app-user-chat',
204+
iconActive: 'app-user-chat-active',
205205
title: 'views.chatUser.title',
206-
active: 'chat-log',
206+
active: 'chat-user',
207207
parentPath: '/knowledge/:id/:folderId',
208208
parentName: 'KnowledgeDetail',
209209
resourceType: SourceTypeEnum.KNOWLEDGE,

ui/src/views/system-resource-management/ModelResourceIndex.vue

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,14 @@
6161
<!-- <el-table-column type="selection" width="55" /> -->
6262
<el-table-column width="220" :label="$t('common.name')" show-overflow-tooltip>
6363
<template #default="{ row }">
64-
{{ row.name }}
64+
<el-space :size="8">
65+
<span
66+
style="width: 24px; height: 24px; display: inline-block"
67+
:innerHTML="getRowProvider(row)?.icon"
68+
>
69+
</span>
70+
<span> {{ row.name }}</span>
71+
</el-space>
6572
</template>
6673
</el-table-column>
6774
<el-table-column

ui/src/views/system-setting/theme/index.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,5 +421,10 @@ onMounted(() => {
421421
background: var(--app-header-bg-color);
422422
}
423423
}
424+
.theme-form {
425+
:deep(.el-checkbox__input.is-checked + .el-checkbox__label) {
426+
color: var(--el-checkbox-text-color);
427+
}
428+
}
424429
}
425430
</style>

ui/src/views/tool/ToolDebugDrawer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<el-drawer v-model="debugVisible" size="60%" :append-to-body="true">
2+
<el-drawer v-model="debugVisible" size="60%" :append-to-body="true" :modal="false">
33
<template #header>
44
<div class="flex align-center" style="margin-left: -8px">
55
<el-button class="cursor mr-4" link @click.prevent="debugVisible = false">
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<template>
2-
<img src="@/assets/workflow/icon_globe_color.svg" style="width: 18px" alt="" />
2+
<img src="@/assets/workflow/icon_chat_color.svg" style="width: 18px" alt="" />
33
</template>
44
<script setup lang="ts"></script>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<template>
2-
<img src="@/assets/workflow/icon_chat_color.svg" style="width: 18px" alt="" />
2+
<img src="@/assets/workflow/icon_globe_color.svg" style="width: 18px" alt="" />
33
</template>
44
<script setup lang="ts"></script>

0 commit comments

Comments
 (0)