fix: 还原markdown行高限制,恢复部门样式

This commit is contained in:
wangdan-fit2cloud 2024-12-04 18:39:03 +08:00
parent d6a7a5f92e
commit 5eaafb07a1
3 changed files with 3 additions and 7 deletions

View File

@ -6,7 +6,7 @@
<LogoIcon v-else height="32px" width="32px" /> <LogoIcon v-else height="32px" width="32px" />
</div> </div>
<div class="content"> <div class="content">
<el-card shadow="always" class="dialog-card"> <el-card shadow="always" class="dialog-card" style="--el-card-padding: 10px 16px 12px">
<MdRenderer :source="prologue" :send-message="sendMessage"></MdRenderer> <MdRenderer :source="prologue" :send-message="sendMessage"></MdRenderer>
</el-card> </el-card>
</div> </div>
@ -32,6 +32,4 @@ const prologue = computed(() => {
return temp?.replace(/-\s.+/g, toQuickQuestion) return temp?.replace(/-\s.+/g, toQuickQuestion)
}) })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped></style>
</style>

View File

@ -3,7 +3,7 @@
<div <div
v-if="item.type === 'question'" v-if="item.type === 'question'"
@click="sendMessage ? sendMessage(item.content, 'new') : (content: string) => {}" @click="sendMessage ? sendMessage(item.content, 'new') : (content: string) => {}"
class="problem-button ellipsis-2 mt-8" class="problem-button ellipsis-2 mt-4 mb-4"
:class="sendMessage ? 'cursor' : 'disabled'" :class="sendMessage ? 'cursor' : 'disabled'"
> >
<el-icon> <el-icon>

View File

@ -7,8 +7,6 @@
font-size: inherit; font-size: inherit;
p { p {
padding: 0 !important; padding: 0 !important;
margin: 0 !important;
line-height: 22px !important;
} }
.md-editor-admonition { .md-editor-admonition {
margin: 0; margin: 0;