mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
style: Optimize style
This commit is contained in:
parent
26ba893877
commit
d1135dc7bc
|
|
@ -526,41 +526,6 @@
|
|||
</template>
|
||||
<!-- 图片生成 -->
|
||||
<template v-if="item.type == WorkflowType.ImageGenerateNode">
|
||||
<div
|
||||
class="card-never border-r-4 mt-8"
|
||||
v-if="item.type !== WorkflowType.Application"
|
||||
>
|
||||
<h5 class="p-8-12">历史记录</h5>
|
||||
<div class="p-8-12 border-t-dashed lighter">
|
||||
<template v-if="item.history_message?.length > 0">
|
||||
<p
|
||||
class="mt-4 mb-4"
|
||||
v-for="(history, historyIndex) in item.history_message"
|
||||
:key="historyIndex"
|
||||
>
|
||||
<span class="color-secondary mr-4">{{ history.role }}:</span>
|
||||
|
||||
<span v-if="Array.isArray(history.content)">
|
||||
<template v-for="(h, i) in history.content" :key="i">
|
||||
<el-image
|
||||
v-if="h.type === 'image_url'"
|
||||
:src="h.image_url.url"
|
||||
alt=""
|
||||
fit="cover"
|
||||
style="width: 40px; height: 40px; display: inline-block"
|
||||
class="border-r-4 mr-8"
|
||||
/>
|
||||
|
||||
<span v-else>{{ h.text }}<br /></span>
|
||||
</template>
|
||||
</span>
|
||||
|
||||
<span v-else>{{ history.content }}</span>
|
||||
</p>
|
||||
</template>
|
||||
<template v-else> - </template>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-never border-r-4 mt-8">
|
||||
<h5 class="p-8-12">本次对话</h5>
|
||||
<div class="p-8-12 border-t-dashed lighter pre-wrap">
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
<el-input v-model="detail.padding_problem_text" disabled />
|
||||
</el-form-item>
|
||||
<el-form-item label="引用分段">
|
||||
<div v-if="detail.paragraph_list.length > 0">
|
||||
<div v-if="detail.paragraph_list.length > 0" class="w-full">
|
||||
<template v-for="(item, index) in detail.paragraph_list" :key="index">
|
||||
<ParagraphCard :data="item" :index="index" />
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ defineProps({
|
|||
cursor: pointer;
|
||||
min-height: var(--card-min-height);
|
||||
border: 1px dashed var(--el-border-color);
|
||||
background: #eff0f1;
|
||||
background: var(--el-disabled-bg-color);
|
||||
border-radius: 8px;
|
||||
box-sizing: border-box;
|
||||
|
||||
|
|
|
|||
|
|
@ -129,7 +129,7 @@ defineExpose({
|
|||
cursor: pointer;
|
||||
min-height: var(--card-min-height);
|
||||
border: 1px dashed var(--el-color-primary);
|
||||
background: #eff0f1;
|
||||
background: var(--el-disabled-bg-color);;
|
||||
padding-bottom: 20px;
|
||||
|
||||
.add-icon {
|
||||
|
|
|
|||
|
|
@ -5,6 +5,9 @@
|
|||
--el-border-color: #dee0e3;
|
||||
--el-text-color-regular: #1f2329;
|
||||
--el-color-info: #8f959e !important;
|
||||
--el-disabled-bg-color: #eff0f1;
|
||||
--el-disabled-border-color: #bbbfc4;
|
||||
--el-text-color-primary: #1f2329;
|
||||
}
|
||||
|
||||
.el-button {
|
||||
|
|
@ -251,6 +254,9 @@
|
|||
padding: 1px 12px !important;
|
||||
}
|
||||
|
||||
.el-input.is-disabled .el-input__wrapper {
|
||||
}
|
||||
|
||||
.el-input--large {
|
||||
.el-input__inner {
|
||||
font-size: 16px;
|
||||
|
|
|
|||
|
|
@ -477,12 +477,7 @@ defineExpose({ open })
|
|||
top: 25px;
|
||||
border-radius: 8px;
|
||||
border: 1px solid #ffffff;
|
||||
background: linear-gradient(
|
||||
188deg,
|
||||
rgba(235, 241, 255, 0.2) 39.6%,
|
||||
rgba(231, 249, 255, 0.2) 94.3%
|
||||
),
|
||||
#eff0f1;
|
||||
background: var(--dialog-bg-gradient-color);
|
||||
box-shadow: 0px 4px 8px 0px rgba(31, 35, 41, 0.1);
|
||||
overflow: hidden;
|
||||
width: 330px;
|
||||
|
|
|
|||
|
|
@ -405,12 +405,7 @@ onBeforeUnmount(() => {
|
|||
position: relative;
|
||||
border-radius: 8px;
|
||||
border: 1px solid #ffffff;
|
||||
background: linear-gradient(
|
||||
188deg,
|
||||
rgba(235, 241, 255, 0.2) 39.6%,
|
||||
rgba(231, 249, 255, 0.2) 94.3%
|
||||
),
|
||||
#eff0f1;
|
||||
background: var(--dialog-bg-gradient-color);
|
||||
box-shadow: 0px 4px 8px 0px rgba(31, 35, 41, 0.1);
|
||||
position: fixed;
|
||||
bottom: 16px;
|
||||
|
|
|
|||
|
|
@ -162,8 +162,8 @@
|
|||
<el-input-number
|
||||
v-model="days"
|
||||
controls-position="right"
|
||||
min="1"
|
||||
max="100000"
|
||||
:min="1"
|
||||
:max="100000"
|
||||
:value-on-clear="0"
|
||||
step-strictly
|
||||
style="width: 110px; margin-left: 8px; margin-right: 8px"
|
||||
|
|
|
|||
|
|
@ -324,8 +324,10 @@ onMounted(() => {
|
|||
border-bottom: none !important;
|
||||
padding-left: 16px;
|
||||
font-size: 14px;
|
||||
height: 40px;
|
||||
&:hover {
|
||||
background: var(--app-text-color-light-1);
|
||||
border-radius: 4px;
|
||||
}
|
||||
}
|
||||
:deep(.el-collapse-item) {
|
||||
|
|
@ -340,7 +342,7 @@ onMounted(() => {
|
|||
border-bottom: none !important;
|
||||
}
|
||||
:deep(.el-collapse-item__content) {
|
||||
padding-bottom: 0 !important;;
|
||||
padding-bottom: 0 !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ const fileURL = computed(() => {
|
|||
}
|
||||
|
||||
.header {
|
||||
background: #eff0f1;
|
||||
background: var(--el-disabled-bg-color);
|
||||
height: 38px;
|
||||
border-radius: 4px 4px 0 0;
|
||||
position: relative;
|
||||
|
|
|
|||
Loading…
Reference in New Issue