Skip to content

Commit 635de3a

Browse files
fix: 优化对话框选项卡样式
1 parent fd35ef2 commit 635de3a

File tree

7 files changed

+33
-45
lines changed

7 files changed

+33
-45
lines changed

ui/src/components/ai-chat/component/prologue-content/index.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,6 @@ const prologue = computed(() => {
3232
return temp?.replace(/-\s.+/g, toQuickQuestion)
3333
})
3434
</script>
35-
<style lang="scss" scoped></style>
35+
<style lang="scss" scoped>
36+
37+
</style>

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

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -26,34 +26,6 @@
2626
.text {
2727
padding: 6px 0;
2828
}
29-
30-
.problem-button {
31-
width: 100%;
32-
border: none;
33-
border-radius: 8px;
34-
background: var(--app-layout-bg-color);
35-
height: 46px;
36-
padding: 0 12px;
37-
line-height: 46px;
38-
box-sizing: border-box;
39-
color: var(--el-text-color-regular);
40-
-webkit-line-clamp: 1;
41-
word-break: break-all;
42-
43-
&:hover {
44-
background: var(--el-color-primary-light-9);
45-
}
46-
47-
&.disabled {
48-
&:hover {
49-
background: var(--app-layout-bg-color);
50-
}
51-
}
52-
53-
.el-icon {
54-
color: var(--el-color-primary);
55-
}
56-
}
5729
}
5830
&__operate {
5931
background: #f3f7f9;

ui/src/components/dynamics-form/items/radio/RadioCard.vue

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
11
<template>
2-
<div class="radio_content" v-resize="resize" :style="radioContentStyle">
3-
<el-card
4-
v-for="item in option_list"
5-
:key="item.value"
6-
class="item"
7-
shadow="never"
8-
:class="[inputDisabled ? 'is-disabled' : '', modelValue == item[valueField] ? 'active' : '']"
9-
@click="inputDisabled ? () => {} : selected(item[valueField])"
10-
>
11-
{{ item[textField] }}
12-
</el-card>
2+
<div class="radio_content" :style="radioContentStyle">
3+
<el-row :gutter="12" class="w-full">
4+
<template v-for="(item,index) in option_list" :key="index">
5+
<el-col :xs="24" :sm="24" :md="24" :lg="12" :xl="12">
6+
<el-card
7+
:key="item.value"
8+
class="item"
9+
shadow="never"
10+
:class="[
11+
inputDisabled ? 'is-disabled' : '',
12+
modelValue == item[valueField] ? 'active' : ''
13+
]"
14+
@click="inputDisabled ? () => {} : selected(item[valueField])"
15+
>
16+
{{ item[textField] }}
17+
</el-card>
18+
</el-col>
19+
</template>
20+
</el-row>
1321
</div>
1422
</template>
1523
<script lang="ts" setup>

ui/src/components/markdown/MdRenderer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div
44
v-if="item.type === 'question'"
55
@click="sendMessage ? sendMessage(item.content, 'new') : (content: string) => {}"
6-
class="problem-button ellipsis-2 mb-8"
6+
class="problem-button ellipsis-2 mt-8"
77
:class="sendMessage ? 'cursor' : 'disabled'"
88
>
99
<el-icon>

ui/src/styles/app.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,10 @@ h5 {
277277
vertical-align: middle;
278278
}
279279

280+
.line-height-22 {
281+
line-height: 22px;
282+
}
283+
280284
.border {
281285
border: 1px solid var(--el-border-color);
282286
}
@@ -745,5 +749,5 @@ h5 {
745749

746750
//企业微信
747751
.wwLogin_qrcode_head {
748-
padding:20px 0 !important;
749-
}
752+
padding: 20px 0 !important;
753+
}

ui/src/styles/md-editor.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
font-size: inherit;
88
p {
99
padding: 0 !important;
10+
margin: 0 !important;
11+
line-height: 22px !important;
1012
}
1113
.md-editor-admonition {
1214
margin: 0;

ui/src/workflow/nodes/base-node/component/FileUploadSettingDialog.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
<div class="flex align-center">
4545
<img class="mr-12" src="@/assets/icon_file-doc.svg" alt="" />
4646
<div>
47-
<p>文档(TXT、MD、DOCX、HTML、CSV、XLSX、XLS、PDF)</p>
47+
<p class="line-height-22 mt-4">文档(TXT、MD、DOCX、HTML、CSV、XLSX、XLS、PDF)</p>
4848
<el-text class="color-secondary">需要使用“文档内容提取”节点解析文档内容</el-text>
4949
</div>
5050
</div>
@@ -61,7 +61,7 @@
6161
<div class="flex align-center">
6262
<img class="mr-12" src="@/assets/icon_file-image.svg" alt="" />
6363
<div>
64-
<p>图片(JPG、JPEG、PNG、GIF)</p>
64+
<p class="line-height-22 mt-4">图片(JPG、JPEG、PNG、GIF)</p>
6565
<el-text class="color-secondary">需要使用“图片理解”节点解析图片内容</el-text>
6666
</div>
6767
</div>

0 commit comments

Comments
 (0)