Skip to content

Commit 3e8734a

Browse files
fix: 优化部分样式
1 parent e5ead8e commit 3e8734a

File tree

5 files changed

+14
-6
lines changed

5 files changed

+14
-6
lines changed

apps/application/template/embed.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ function initMaxkbStyle(root){
169169
position: absolute;
170170
{{x_type}}: {{x_value}}px;
171171
{{y_type}}: {{y_value}}px;
172-
z-index: 1000;
172+
z-index: 10001;
173173
}
174174
#maxkb .maxkb-tips {
175175
position: fixed;
@@ -180,7 +180,7 @@ function initMaxkbStyle(root){
180180
color: #ffffff;
181181
font-size: 14px;
182182
background: #3370FF;
183-
z-index: 1000;
183+
z-index: 10001;
184184
}
185185
#maxkb .maxkb-tips .maxkb-arrow {
186186
position: absolute;

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,12 @@
2020
<el-input v-model="detail.padding_problem_text" disabled />
2121
</el-form-item>
2222
<el-form-item label="引用分段">
23-
<template v-for="(item, index) in detail.paragraph_list" :key="index">
24-
<ParagraphCard :data="item" :index="index" />
25-
</template>
23+
<div v-if="detail.paragraph_list.length > 0">
24+
<template v-for="(item, index) in detail.paragraph_list" :key="index">
25+
<ParagraphCard :data="item" :index="index" />
26+
</template>
27+
</div>
28+
<span v-else> - </span>
2629
</el-form-item>
2730
</el-form>
2831
</div>

ui/src/components/ai-chat/component/ParagraphCard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</template>
1818
<template #footer>
1919
<div class="footer-content flex-between">
20-
<el-text class="flex align-center" style="width: 70%">
20+
<el-text class="flex align-center" style="width: 50%">
2121
<img :src="getImgUrl(data?.document_name?.trim())" alt="" width="20" class="mr-4" />
2222

2323
<template v-if="meta?.source_url">

ui/src/styles/element-plus.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,9 @@
256256
}
257257
}
258258

259+
.el-select__placeholder {
260+
font-weight: 400;
261+
}
259262
.el-select__placeholder.is-transparent {
260263
color: var(--app-input-color-placeholder);
261264
font-weight: 400;

ui/src/views/application/ApplicationSetting.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,7 @@
409409
link
410410
@click="openTTSParamSettingDialog"
411411
:disabled="!applicationForm.tts_model_id"
412+
class="mr-8"
412413
>
413414
<el-icon class="mr-4"><Setting /></el-icon>
414415
设置
@@ -424,6 +425,7 @@
424425
<el-radio-group
425426
v-model="applicationForm.tts_type"
426427
v-show="applicationForm.tts_model_enable"
428+
class="mb-8"
427429
>
428430
<el-radio value="BROWSER">浏览器播放(免费)</el-radio>
429431
<el-radio value="TTS">TTS模型</el-radio>

0 commit comments

Comments
 (0)