Skip to content

Commit 906ec28

Browse files
fix: 统一头像尺寸
1 parent 5f02b56 commit 906ec28

File tree

11 files changed

+90
-30
lines changed

11 files changed

+90
-30
lines changed

ui/src/components/ai-chat/index.vue

+15-3
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,14 @@
4040
<div ref="dialogScrollbar" class="ai-chat__content p-24 chat-width">
4141
<div class="item-content mb-16" v-if="!props.available || (props.data?.prologue && !log)">
4242
<div class="avatar">
43-
<img v-if="data.avatar" :src="data.avatar" height="32px" width="32px" />
44-
<LogoIcon v-else height="32px" width="32px" />
43+
<el-image
44+
v-if="data.avatar"
45+
:src="data.avatar"
46+
alt=""
47+
fit="cover"
48+
style="width: 32px; height: 32px; display: block"
49+
/>
50+
<LogoIcon v-else height="32px" width="32px" />
4551
</div>
4652

4753
<div class="content">
@@ -96,7 +102,13 @@
96102
<!-- 回答 -->
97103
<div class="item-content mb-16 lighter">
98104
<div class="avatar">
99-
<img v-if="data.avatar" :src="data.avatar" height="32px" width="32px" />
105+
<el-image
106+
v-if="data.avatar"
107+
:src="data.avatar"
108+
alt=""
109+
fit="cover"
110+
style="width: 30px; height: 30px; display: block"
111+
/>
100112
<LogoIcon v-else height="32px" width="32px" />
101113
</div>
102114

ui/src/views/application-overview/component/XPackDisplaySettingDialog.vue

+6-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,12 @@
3636
:size="32"
3737
style="background: none"
3838
>
39-
<img :src="detail?.icon" alt="" />
39+
<el-image
40+
:src="detail?.icon"
41+
alt=""
42+
fit="cover"
43+
style="width: 32px; height: 32px; display: block"
44+
/>
4045
</AppAvatar>
4146
<AppAvatar
4247
v-else-if="detail?.name"

ui/src/views/application-overview/index.vue

+21-17
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@
1818
:size="32"
1919
style="background: none"
2020
>
21-
<img :src="detail?.icon" alt="" />
21+
<el-image
22+
:src="detail?.icon"
23+
alt=""
24+
fit="cover"
25+
style="width: 32px; height: 32px; display: block"
26+
/>
2227
</AppAvatar>
2328
<AppAvatar
2429
v-else-if="detail?.name"
@@ -353,23 +358,22 @@ function getDetail() {
353358
?.filter((v: any) => v.id === 'base-node')
354359
.map((v: any) => {
355360
apiInputParams.value = v.properties.api_input_field_list
356-
? v.properties.api_input_field_list
357-
.map((v: any) => {
358-
return {
359-
name: v.variable,
360-
value: v.default_value
361-
}
362-
})
361+
? v.properties.api_input_field_list.map((v: any) => {
362+
return {
363+
name: v.variable,
364+
value: v.default_value
365+
}
366+
})
363367
: v.properties.input_field_list
364-
? v.properties.input_field_list
365-
.filter((v: any) => v.assignment_method === 'api_input')
366-
.map((v: any) => {
367-
return {
368-
name: v.variable,
369-
value: v.default_value
370-
}
371-
})
372-
: []
368+
? v.properties.input_field_list
369+
.filter((v: any) => v.assignment_method === 'api_input')
370+
.map((v: any) => {
371+
return {
372+
name: v.variable,
373+
value: v.default_value
374+
}
375+
})
376+
: []
373377
})
374378
})
375379
}

ui/src/views/application-workflow/index.vue

+6-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,12 @@
9090
:size="32"
9191
style="background: none"
9292
>
93-
<img :src="detail?.icon" alt="" />
93+
<el-image
94+
:src="detail?.icon"
95+
alt=""
96+
fit="cover"
97+
style="width: 32px; height: 32px; display: block"
98+
/>
9499
</AppAvatar>
95100
<AppAvatar
96101
v-else-if="detail?.name"

ui/src/views/application/ApplicationSetting.vue

+5-1
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,11 @@
509509
:size="32"
510510
style="background: none"
511511
>
512-
<img :src="applicationForm?.icon" alt="" />
512+
<img
513+
:src="applicationForm?.icon"
514+
alt=""
515+
style="width: 32px; height: 32px; display: block"
516+
/>
513517
</AppAvatar>
514518
<AppAvatar
515519
v-else-if="applicationForm?.name"

ui/src/views/application/index.vue

+7-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,12 @@
5151
style="background: none"
5252
class="mr-8"
5353
>
54-
<img :src="item?.icon" alt="" />
54+
<el-image
55+
:src="item?.icon"
56+
alt=""
57+
fit="cover"
58+
style="width: 32px; height: 32px; display: block"
59+
/>
5560
</AppAvatar>
5661
<AppAvatar
5762
v-else-if="item?.name"
@@ -175,7 +180,7 @@ function openCreateDialog() {
175180
} else {
176181
MsgConfirm(`提示`, '社区版最多支持 5 个应用,如需拥有更多应用,请升级为专业版。', {
177182
cancelButtonText: '确定',
178-
confirmButtonText: '购买专业版',
183+
confirmButtonText: '购买专业版'
179184
})
180185
.then(() => {
181186
window.open('https://maxkb.cn/#.html', '_blank')

ui/src/views/chat/auth/index.vue

+6-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@
88
:size="32"
99
style="background: none"
1010
>
11-
<img :src="application_profile?.icon" alt="" />
11+
<el-image
12+
:src="application_profile?.icon"
13+
alt=""
14+
fit="cover"
15+
style="width: 32px; height: 32px; display: block"
16+
/>
1217
</AppAvatar>
1318
<AppAvatar
1419
v-else-if="application_profile?.name"

ui/src/views/chat/base/index.vue

+6-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@
99
:size="32"
1010
style="background: none"
1111
>
12-
<img :src="applicationDetail?.icon" alt="" />
12+
<el-image
13+
:src="applicationDetail?.icon"
14+
alt=""
15+
fit="cover"
16+
style="width: 32px; height: 32px; display: block"
17+
/>
1318
</AppAvatar>
1419
<AppAvatar
1520
v-else-if="applicationDetail?.name"

ui/src/views/chat/embed/index.vue

+6-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@
1616
:size="32"
1717
style="background: none"
1818
>
19-
<img :src="applicationDetail?.icon" alt="" />
19+
<el-image
20+
:src="applicationDetail?.icon"
21+
alt=""
22+
fit="cover"
23+
style="width: 32px; height: 32px; display: block"
24+
/>
2025
</AppAvatar>
2126
<AppAvatar
2227
v-else-if="applicationDetail?.name"

ui/src/views/chat/pc/index.vue

+6-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@
1717
:size="32"
1818
style="background: none"
1919
>
20-
<img :src="applicationDetail?.icon" alt="" />
20+
<el-image
21+
:src="applicationDetail?.icon"
22+
alt=""
23+
fit="cover"
24+
style="width: 32px; height: 32px; display: block"
25+
/>
2126
</AppAvatar>
2227
<AppAvatar
2328
v-else-if="applicationDetail?.name"

ui/src/views/dataset/DatasetSetting.vue

+6-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,12 @@
7373
style="background: none"
7474
class="mr-12"
7575
>
76-
<img :src="item?.icon" alt="" />
76+
<el-image
77+
:src="item?.icon"
78+
alt=""
79+
fit="cover"
80+
style="width: 32px; height: 32px; display: block"
81+
/>
7782
</AppAvatar>
7883
<AppAvatar
7984
v-else-if="item?.name"

0 commit comments

Comments
 (0)