AI分析Markdown样式优化:紧凑段落间距、标题上下留白、npm淘宝镜像

This commit is contained in:
fish
2026-05-10 17:45:58 +08:00
parent 1d1a6d6cdf
commit c47735f3b6
2 changed files with 19 additions and 2 deletions

View File

@@ -348,3 +348,12 @@ const quadrantLabel = (q: string) => {
color: var(--el-text-color-secondary);
}
</style>
<style>
/* AI Markdown 输出段落间距(非 scoped确保 v-html 生效) */
.ai-text p { margin: 3px 0; }
.ai-text h1, .ai-text h2, .ai-text h3, .ai-text h4 { margin: 16px 0 6px; font-size: inherit; }
.ai-text ul, .ai-text ol { margin: 3px 0; padding-left: 18px; }
.ai-text li { margin: 1px 0; }
.ai-text strong { color: var(--el-color-primary, #409eff); }
</style>

View File

@@ -403,8 +403,7 @@ onMounted(async () => {
padding: 12px;
}
.ai-text {
line-height: 1.8;
white-space: pre-wrap;
line-height: 1.5;
}
.ai-error {
color: var(--el-color-danger);
@@ -448,3 +447,12 @@ onMounted(async () => {
}
}
</style>
<style>
/* AI Markdown 输出段落间距(非 scoped确保 v-html 生效) */
.ai-text p { margin: 3px 0; }
.ai-text h1, .ai-text h2, .ai-text h3, .ai-text h4 { margin: 16px 0 6px; font-size: inherit; }
.ai-text ul, .ai-text ol { margin: 3px 0; padding-left: 18px; }
.ai-text li { margin: 1px 0; }
.ai-text strong { color: var(--el-color-primary, #409eff); }
</style>