Skip to content

Commit 45b3dd3

Browse files
perf: Optimize the style
1 parent f1f03e9 commit 45b3dd3

40 files changed

+280
-224
lines changed
Lines changed: 7 additions & 0 deletions
Loading
Lines changed: 6 additions & 14 deletions
Loading
Lines changed: 5 additions & 0 deletions
Loading
File renamed without changes.

ui/src/components/app-icon/ToolIcon.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
<template>
22
<el-avatar v-if="type == 'MCP'" shape="square" :size="size">
3-
<img src="@/assets/workflow/icon_mcp.svg" style="width: 75%" alt="" />
3+
<img src="@/assets/tool/icon_mcp.svg" style="width: 75%" alt="" />
4+
</el-avatar>
5+
<el-avatar v-else-if="type == 'DATA_SOURCE'" class="avatar-purple" shape="square" :size="size">
6+
<img src="@/assets/tool/icon_datasource.svg" style="width: 58%" alt="" />
47
</el-avatar>
58
<el-avatar v-else class="avatar-green" shape="square" :size="size">
6-
<img src="@/assets/workflow/icon_tool.svg" style="width: 58%" alt="" />
9+
<img src="@/assets/tool/icon_tool.svg" style="width: 58%" alt="" />
710
</el-avatar>
811
</template>
912
<script setup lang="ts">

ui/src/components/card-checkbox/index.vue

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -49,41 +49,4 @@ function checkboxChange() {
4949
emit('change')
5050
}
5151
</script>
52-
<style lang="scss">
53-
.card-checkbox {
54-
&.active {
55-
border: 1px solid var(--el-color-primary);
56-
}
57-
input.checkbox[type='checkbox'] {
58-
-webkit-appearance: none;
59-
-moz-appearance: none;
60-
appearance: none;
61-
height: 14px;
62-
width: 14px;
63-
position: relative;
64-
65-
&::after {
66-
position: absolute;
67-
top: 0;
68-
background-color: white;
69-
color: #000;
70-
height: 13px;
71-
width: 13px;
72-
visibility: visible;
73-
text-align: center;
74-
box-sizing: border-box;
75-
border: var(--el-border);
76-
border-radius: var(--el-border-radius-small);
77-
box-sizing: content-box;
78-
content: '';
79-
}
80-
81-
&:checked::after {
82-
content: '';
83-
color: #ffffff;
84-
border-color: var(--el-color-primary);
85-
background: var(--el-color-primary);
86-
}
87-
}
88-
}
89-
</style>
52+
<style lang="scss"></style>

ui/src/components/dropdown_menu/application/NodeContent.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<img :src="resetUrl(item?.icon, resetUrl('./favicon.ico'))" alt="" />
3232
</el-avatar>
3333
<el-avatar v-else class="avatar-green" shape="square" :size="20">
34-
<img src="@/assets/workflow/icon_tool.svg" style="width: 58%" alt="" />
34+
<img src="@/assets/tool/icon_tool.svg" style="width: 58%" alt="" />
3535
</el-avatar>
3636
<span class="ml-8 ellipsis" :title="item.name">{{ item.name }}</span>
3737
</div>
@@ -49,7 +49,7 @@
4949
<img :src="resetUrl(item?.icon, resetUrl('./favicon.ico'))" alt="" />
5050
</el-avatar>
5151
<el-avatar v-else class="avatar-green" shape="square" :size="20">
52-
<img src="@/assets/workflow/icon_tool.svg" style="width: 58%" alt="" />
52+
<img src="@/assets/tool/icon_tool.svg" style="width: 58%" alt="" />
5353
</el-avatar>
5454
<span class="font-medium ml-8 break-all" :title="item.name">{{ item.name }}</span>
5555
</div>

0 commit comments

Comments
 (0)