diff --git a/pages/Chat/Chat.css b/pages/Chat/Chat.css index 8ef03c6..1f099f8 100644 --- a/pages/Chat/Chat.css +++ b/pages/Chat/Chat.css @@ -427,6 +427,11 @@ border-bottom-right-radius: 8rpx; } +/* AI 回复气泡满屏 */ +.chat-content-assistant { + max-width: 100%; +} + .chat-content:not(.chat-content-user) { border-bottom-left-radius: 8rpx; } diff --git a/pages/Chat/Chat.vue b/pages/Chat/Chat.vue index 8e6fc19..5e06ed8 100644 --- a/pages/Chat/Chat.vue +++ b/pages/Chat/Chat.vue @@ -117,7 +117,7 @@ - diff --git a/unpackage/dist/dev/app-plus/app-service.js b/unpackage/dist/dev/app-plus/app-service.js index b53e411..d65f08b 100644 --- a/unpackage/dist/dev/app-plus/app-service.js +++ b/unpackage/dist/dev/app-plus/app-service.js @@ -6622,7 +6622,7 @@ This will fail in production.`); )) : vue.createCommentVNode("v-if", true), message.content && String(message.content).trim() !== "" ? (vue.openBlock(), vue.createElementBlock("view", { key: 1, - class: vue.normalizeClass(["chat-content", { "chat-content-user": message.role === "user" }]), + class: vue.normalizeClass(["chat-content", { "chat-content-user": message.role === "user", "chat-content-assistant": message.role === "assistant" }]), onClick: ($event) => $setup.showMessageDetail(message) }, [ $setup.parseFileInfo(message.content).textContent ? (vue.openBlock(), vue.createElementBlock("view", { diff --git a/unpackage/dist/dev/app-plus/pages/Chat/Chat.css b/unpackage/dist/dev/app-plus/pages/Chat/Chat.css index 42ab1e5..2c853fe 100644 --- a/unpackage/dist/dev/app-plus/pages/Chat/Chat.css +++ b/unpackage/dist/dev/app-plus/pages/Chat/Chat.css @@ -1283,6 +1283,10 @@ to { opacity: 1; transform: translateY(0); box-shadow: 0 0.125rem 0.375rem rgba(170, 170, 255, 0.3); border-bottom-right-radius: 0.25rem; } +/* AI 回复气泡满屏 */ +.chat-content-assistant[data-v-5eb7b895] { + max-width: 100%; +} .chat-content[data-v-5eb7b895]:not(.chat-content-user) { border-bottom-left-radius: 0.25rem; }