Skip to content

Commit eed4d68

Browse files
fix: Update lark icon and dialog style
1 parent 601b03d commit eed4d68

File tree

21 files changed

+352
-267
lines changed

21 files changed

+352
-267
lines changed

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

+1-6
Original file line numberDiff line numberDiff line change
@@ -720,14 +720,9 @@ defineExpose({ open })
720720
</script>
721721
<style lang="scss">
722722
.execution-details-dialog {
723-
padding: 0;
724723
725724
.el-dialog__header {
726-
padding: 24px 24px 0 24px;
727-
}
728-
729-
.el-dialog__body {
730-
padding: 8px !important;
725+
padding-bottom: 16px;
731726
}
732727
733728
.execution-details {

ui/src/components/ai-chat/component/chat-input-operate/index.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@
198198
}}:{{ getAcceptList().replace(/\./g, '').replace(/,/g, '、').toUpperCase() }}
199199
</div>
200200
</template>
201-
<el-button text :disabled="checkMaxFilesLimit()" class="mt-4">
201+
<el-button text :disabled="checkMaxFilesLimit() || loading" class="mt-4">
202202
<el-icon><Paperclip /></el-icon>
203203
</el-button>
204204
</el-tooltip>

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

+9
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@
1111
<AppAvatar v-if="data.type === '1'" class="mr-8 avatar-purple" shape="square" :size="32">
1212
<img src="@/assets/icon_web.svg" style="width: 58%" alt="" />
1313
</AppAvatar>
14+
<AppAvatar
15+
v-else-if="data.type === '2'"
16+
class="mr-8 avatar-purple"
17+
shape="square"
18+
:size="32"
19+
style="background: none"
20+
>
21+
<img src="@/assets/logo_lark.svg" style="width: 100%" alt="" />
22+
</AppAvatar>
1423

1524
<AppAvatar v-else class="mr-12 avatar-blue" shape="square" :size="32">
1625
<img src="@/assets/icon_document.svg" style="width: 58%" alt="" />

ui/src/layout/components/breadcrumb/index.vue

+21-2
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,19 @@
3636
>
3737
<img src="@/assets/icon_web.svg" style="width: 58%" alt="" />
3838
</AppAvatar>
39+
<AppAvatar
40+
v-else-if="isDataset && current?.type === '2'"
41+
class="mr-8 avatar-purple"
42+
shape="square"
43+
:size="24"
44+
style="background: none"
45+
>
46+
<img src="@/assets/logo_lark.svg" style="width: 100%" alt="" />
47+
</AppAvatar>
3948
<AppAvatar v-else class="mr-8 avatar-blue" shape="square" :size="24">
4049
<img src="@/assets/icon_document.svg" style="width: 58%" alt="" />
4150
</AppAvatar>
42-
<div class="ellipsis">{{ current?.name }}</div>
51+
<div class="ellipsis" :title="current?.name">{{ current?.name }}</div>
4352
</div>
4453

4554
<el-button text>
@@ -63,6 +72,7 @@
6372
>
6473
<img :src="item?.icon" alt="" />
6574
</AppAvatar>
75+
6676
<AppAvatar
6777
v-else-if="isApplication"
6878
:name="item.name"
@@ -79,10 +89,19 @@
7989
>
8090
<img src="@/assets/icon_web.svg" style="width: 58%" alt="" />
8191
</AppAvatar>
92+
<AppAvatar
93+
v-else-if="isDataset && item.type === '2'"
94+
class="mr-8 avatar-purple"
95+
shape="square"
96+
:size="24"
97+
style="background: none"
98+
>
99+
<img src="@/assets/logo_lark.svg" style="width: 100%" alt="" />
100+
</AppAvatar>
82101
<AppAvatar v-else class="mr-12 avatar-blue" shape="square" :size="24">
83102
<img src="@/assets/icon_document.svg" style="width: 58%" alt="" />
84103
</AppAvatar>
85-
<span class="ellipsis"> {{ item?.name }}</span>
104+
<span class="ellipsis" :title="item?.name"> {{ item?.name }}</span>
86105
</div>
87106
</el-dropdown-item>
88107
</div>

ui/src/styles/element-plus.scss

+2-12
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393
.el-dialog__header {
9494
padding-bottom: 24px;
9595
font-weight: 500;
96+
margin-top: -5px;
9697
}
9798
.el-dialog__footer {
9899
padding-top: 0;
@@ -378,18 +379,7 @@
378379

379380
// radio 一行一个样式
380381
.radio-block {
381-
width: 100%;
382-
display: block;
383-
.el-radio {
384-
align-items: flex-start;
385-
height: 100%;
386-
width: 100%;
387-
}
388-
.el-radio__label {
389-
width: 100%;
390-
margin-top: -8px;
391-
line-height: 30px;
392-
}
382+
display: inline-grid;
393383
}
394384

395385
// 提示横幅

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

+17-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
:close-on-click-modal="false"
66
:close-on-press-escape="false"
77
>
8-
<el-radio-group v-model="radioType" class="radio-block mb-16">
8+
<el-radio-group v-model="radioType" class="radio-block-avatar mb-16">
99
<div>
1010
<el-radio value="default">
1111
<p>{{ $t('views.applicationOverview.appInfo.EditAvatarDialog.default') }}</p>
@@ -139,4 +139,19 @@ function submit() {
139139
140140
defineExpose({ open })
141141
</script>
142-
<style lang="scss" scoped></style>
142+
<style lang="scss" scoped>
143+
.radio-block-avatar {
144+
width: 100%;
145+
display: block;
146+
.el-radio {
147+
align-items: flex-start;
148+
height: 100%;
149+
width: 100%;
150+
}
151+
.el-radio__label {
152+
width: 100%;
153+
margin-top: -8px;
154+
line-height: 30px;
155+
}
156+
}
157+
</style>

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ const submit = async (formEl: FormInstance | undefined) => {
585585
586586
defineExpose({ open })
587587
</script>
588-
<style lang="scss" scoped>
588+
<style lang="scss">
589589
.setting-preview {
590590
background: #f5f6f7;
591591
height: 570px;
@@ -621,11 +621,11 @@ defineExpose({ open })
621621
622622
.display-setting-dialog {
623623
.el-dialog__header {
624-
padding-right: 16px;
624+
padding-right: 8px;
625625
}
626626
627627
.el-dialog__headerbtn {
628-
top: 13px;
628+
top: 8px;
629629
}
630630
}
631631
</style>

ui/src/views/application/ApplicationSetting.vue

+9-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,15 @@
204204
>
205205
<img src="@/assets/icon_web.svg" style="width: 58%" alt="" />
206206
</AppAvatar>
207-
207+
<AppAvatar
208+
v-if="relatedObject(datasetList, item, 'id')?.type === '2'"
209+
class="mr-8 avatar-purple"
210+
shape="square"
211+
:size="32"
212+
style="background: none"
213+
>
214+
<img src="@/assets/logo_lark.svg" style="width: 100%" alt="" />
215+
</AppAvatar>
208216
<AppAvatar v-else class="mr-8 avatar-blue" shape="square" :size="32">
209217
<img src="@/assets/icon_document.svg" style="width: 58%" alt="" />
210218
</AppAvatar>

ui/src/views/application/component/AIModeParamSettingDialog.vue

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<el-dialog
33
align-center
44
:title="$t('common.paramSetting')"
5-
class="param-dialog"
65
v-model="dialogVisible"
76
style="width: 550px"
87
append-to-body
@@ -21,7 +20,7 @@
2120
</DynamicsForm>
2221

2322
<template #footer>
24-
<span class="dialog-footer p-16">
23+
<span class="dialog-footer">
2524
<el-button @click.prevent="dialogVisible = false">
2625
{{ $t('common.cancel') }}
2726
</el-button>

ui/src/views/application/component/AddDatasetDialog.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ defineExpose({ open })
158158
}
159159
160160
.el-dialog__headerbtn {
161-
top: 13px;
161+
top: 9px;
162162
}
163163
.max-height {
164164
max-height: calc(100vh - 260px);

ui/src/views/application/component/McpServersDialog.vue

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<el-dialog
33
align-center
44
:title="$t('common.setting')"
5-
class="param-dialog"
65
v-model="dialogVisible"
76
style="width: 550px"
87
append-to-body
@@ -34,7 +33,7 @@
3433
</el-form>
3534

3635
<template #footer>
37-
<span class="dialog-footer p-16">
36+
<span class="dialog-footer">
3837
<el-button @click.prevent="dialogVisible = false">{{ $t('common.cancel') }}</el-button>
3938
<el-button type="primary" @click="submit()" :loading="loading">
4039
{{ $t('common.save') }}

0 commit comments

Comments
 (0)