From a0bf4c4338522aaeb6984ca3da5e2cfc5a51d618 Mon Sep 17 00:00:00 2001 From: DCloud__JSON Date: Mon, 29 May 2023 17:18:08 +0800 Subject: [PATCH] 1.0.17 --- changelog.md | 4 + components/uni-ai-msg/uni-ai-msg.scss | 5 +- components/uni-ai-msg/uni-ai-msg.vue | 458 +++++++++++++++----------- package.json | 2 +- pages/chat/chat.vue | 51 +-- 5 files changed, 282 insertions(+), 238 deletions(-) diff --git a/changelog.md b/changelog.md index b769f61..ddbca82 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,7 @@ +## 1.0.17(2023-05-29) +- 新增 显示代码行号 +- 修复 代码块显示样式错误的问题 +- 修复 部分情况下广告位不能正确显示的问题 ## 1.0.16(2023-05-26) - 更新 默认不启用(注释掉)广告组件`uni-ad-rewarded-video` ## 1.0.15(2023-05-26) diff --git a/components/uni-ai-msg/uni-ai-msg.scss b/components/uni-ai-msg/uni-ai-msg.scss index 9546b0d..229b783 100644 --- a/components/uni-ai-msg/uni-ai-msg.scss +++ b/components/uni-ai-msg/uni-ai-msg.scss @@ -1,6 +1,9 @@ @import "@/lib/highlight/github-dark.min.css"; -/* #ifndef APP-NVUE */ +/* #ifndef APP-NVUE */ +.rich-text-box { + max-width: 100%; +} .rich-text-box ::v-deep pre.hljs { padding: 5px 8px; margin: 5px 0; diff --git a/components/uni-ai-msg/uni-ai-msg.vue b/components/uni-ai-msg/uni-ai-msg.vue index fadb0d9..22751cd 100644 --- a/components/uni-ai-msg/uni-ai-msg.vue +++ b/components/uni-ai-msg/uni-ai-msg.vue @@ -1,52 +1,51 @@ -