Skip to content

Commit 5eaafb0

Browse files
fix: 还原markdown行高限制,恢复部门样式
1 parent d6a7a5f commit 5eaafb0

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<LogoIcon v-else height="32px" width="32px" />
77
</div>
88
<div class="content">
9-
<el-card shadow="always" class="dialog-card">
9+
<el-card shadow="always" class="dialog-card" style="--el-card-padding: 10px 16px 12px">
1010
<MdRenderer :source="prologue" :send-message="sendMessage"></MdRenderer>
1111
</el-card>
1212
</div>
@@ -32,6 +32,4 @@ const prologue = computed(() => {
3232
return temp?.replace(/-\s.+/g, toQuickQuestion)
3333
})
3434
</script>
35-
<style lang="scss" scoped>
36-
37-
</style>
35+
<style lang="scss" scoped></style>

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 mt-8"
6+
class="problem-button ellipsis-2 mt-4 mb-4"
77
:class="sendMessage ? 'cursor' : 'disabled'"
88
>
99
<el-icon>

ui/src/styles/md-editor.scss

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

0 commit comments

Comments
 (0)