Skip to content

Commit d1135dc

Browse files
style: Optimize style
1 parent 26ba893 commit d1135dc

File tree

10 files changed

+17
-54
lines changed

10 files changed

+17
-54
lines changed

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

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -526,41 +526,6 @@
526526
</template>
527527
<!-- 图片生成 -->
528528
<template v-if="item.type == WorkflowType.ImageGenerateNode">
529-
<div
530-
class="card-never border-r-4 mt-8"
531-
v-if="item.type !== WorkflowType.Application"
532-
>
533-
<h5 class="p-8-12">历史记录</h5>
534-
<div class="p-8-12 border-t-dashed lighter">
535-
<template v-if="item.history_message?.length > 0">
536-
<p
537-
class="mt-4 mb-4"
538-
v-for="(history, historyIndex) in item.history_message"
539-
:key="historyIndex"
540-
>
541-
<span class="color-secondary mr-4">{{ history.role }}:</span>
542-
543-
<span v-if="Array.isArray(history.content)">
544-
<template v-for="(h, i) in history.content" :key="i">
545-
<el-image
546-
v-if="h.type === 'image_url'"
547-
:src="h.image_url.url"
548-
alt=""
549-
fit="cover"
550-
style="width: 40px; height: 40px; display: inline-block"
551-
class="border-r-4 mr-8"
552-
/>
553-
554-
<span v-else>{{ h.text }}<br /></span>
555-
</template>
556-
</span>
557-
558-
<span v-else>{{ history.content }}</span>
559-
</p>
560-
</template>
561-
<template v-else> - </template>
562-
</div>
563-
</div>
564529
<div class="card-never border-r-4 mt-8">
565530
<h5 class="p-8-12">本次对话</h5>
566531
<div class="p-8-12 border-t-dashed lighter pre-wrap">

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<el-input v-model="detail.padding_problem_text" disabled />
2121
</el-form-item>
2222
<el-form-item label="引用分段">
23-
<div v-if="detail.paragraph_list.length > 0">
23+
<div v-if="detail.paragraph_list.length > 0" class="w-full">
2424
<template v-for="(item, index) in detail.paragraph_list" :key="index">
2525
<ParagraphCard :data="item" :index="index" />
2626
</template>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ defineProps({
2525
cursor: pointer;
2626
min-height: var(--card-min-height);
2727
border: 1px dashed var(--el-border-color);
28-
background: #eff0f1;
28+
background: var(--el-disabled-bg-color);
2929
border-radius: 8px;
3030
box-sizing: border-box;
3131

ui/src/components/dynamics-form/items/complex/ArrayObjectCard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ defineExpose({
129129
cursor: pointer;
130130
min-height: var(--card-min-height);
131131
border: 1px dashed var(--el-color-primary);
132-
background: #eff0f1;
132+
background: var(--el-disabled-bg-color);;
133133
padding-bottom: 20px;
134134
135135
.add-icon {

ui/src/styles/element-plus.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
--el-border-color: #dee0e3;
66
--el-text-color-regular: #1f2329;
77
--el-color-info: #8f959e !important;
8+
--el-disabled-bg-color: #eff0f1;
9+
--el-disabled-border-color: #bbbfc4;
10+
--el-text-color-primary: #1f2329;
811
}
912

1013
.el-button {
@@ -251,6 +254,9 @@
251254
padding: 1px 12px !important;
252255
}
253256

257+
.el-input.is-disabled .el-input__wrapper {
258+
}
259+
254260
.el-input--large {
255261
.el-input__inner {
256262
font-size: 16px;

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -477,12 +477,7 @@ defineExpose({ open })
477477
top: 25px;
478478
border-radius: 8px;
479479
border: 1px solid #ffffff;
480-
background: linear-gradient(
481-
188deg,
482-
rgba(235, 241, 255, 0.2) 39.6%,
483-
rgba(231, 249, 255, 0.2) 94.3%
484-
),
485-
#eff0f1;
480+
background: var(--dialog-bg-gradient-color);
486481
box-shadow: 0px 4px 8px 0px rgba(31, 35, 41, 0.1);
487482
overflow: hidden;
488483
width: 330px;

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -405,12 +405,7 @@ onBeforeUnmount(() => {
405405
position: relative;
406406
border-radius: 8px;
407407
border: 1px solid #ffffff;
408-
background: linear-gradient(
409-
188deg,
410-
rgba(235, 241, 255, 0.2) 39.6%,
411-
rgba(231, 249, 255, 0.2) 94.3%
412-
),
413-
#eff0f1;
408+
background: var(--dialog-bg-gradient-color);
414409
box-shadow: 0px 4px 8px 0px rgba(31, 35, 41, 0.1);
415410
position: fixed;
416411
bottom: 16px;

ui/src/views/log/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@
162162
<el-input-number
163163
v-model="days"
164164
controls-position="right"
165-
min="1"
166-
max="100000"
165+
:min="1"
166+
:max="100000"
167167
:value-on-clear="0"
168168
step-strictly
169169
style="width: 110px; margin-left: 8px; margin-right: 8px"

ui/src/views/template/index.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,10 @@ onMounted(() => {
324324
border-bottom: none !important;
325325
padding-left: 16px;
326326
font-size: 14px;
327+
height: 40px;
327328
&:hover {
328329
background: var(--app-text-color-light-1);
330+
border-radius: 4px;
329331
}
330332
}
331333
:deep(.el-collapse-item) {
@@ -340,7 +342,7 @@ onMounted(() => {
340342
border-bottom: none !important;
341343
}
342344
:deep(.el-collapse-item__content) {
343-
padding-bottom: 0 !important;;
345+
padding-bottom: 0 !important;
344346
}
345347
}
346348
}

ui/src/views/theme/LoginPreview.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const fileURL = computed(() => {
8484
}
8585
8686
.header {
87-
background: #eff0f1;
87+
background: var(--el-disabled-bg-color);
8888
height: 38px;
8989
border-radius: 4px 4px 0 0;
9090
position: relative;

0 commit comments

Comments
 (0)