@@ -127,6 +127,10 @@ const props = defineProps({
isFirstEnter: {
type: Boolean,
required: false
+ },
+ embeddedMode: {
+ type: Boolean,
+ default: false
}
});
@@ -298,6 +302,16 @@ onBeforeUnmount(() => {
@import '../../../components/css/markdown.less';
@import '../../../components/css/chat-message-shared.less';
+.bot_msg {
+ &.is-embedded {
+ width: 100%;
+
+ :deep(.agent-stream-display) {
+ width: 100%;
+ }
+ }
+}
+
// 内容包装器 - 与 Agent 模式的 answer 样式一致
.content-wrapper {
background: var(--td-bg-color-container);
diff --git a/frontend/src/views/chat/components/docInfo.vue b/frontend/src/views/chat/components/docInfo.vue
index c2d9f979..1e1e84e2 100644
--- a/frontend/src/views/chat/components/docInfo.vue
+++ b/frontend/src/views/chat/components/docInfo.vue
@@ -197,6 +197,7 @@ const getWebSearchDisplayText = (item) => {
background-color: var(--td-bg-color-container);
border: .5px solid var(--td-component-stroke);
box-shadow: 0 2px 4px rgba(7, 192, 95, 0.08);
+ box-sizing: border-box;
overflow: hidden;
box-sizing: border-box;
transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
diff --git a/frontend/src/views/chat/components/usermsg.vue b/frontend/src/views/chat/components/usermsg.vue
index 513003b3..5c4a1d5a 100644
--- a/frontend/src/views/chat/components/usermsg.vue
+++ b/frontend/src/views/chat/components/usermsg.vue
@@ -1,5 +1,5 @@
-
+
{
}
}
+.user_msg_container {
+ &.is-embedded {
+ .user_msg {
+ max-width: 100%;
+ }
+ }
+}
+
.user_msg {
width: max-content;
max-width: 776px;
@@ -233,7 +245,6 @@ const closePreImg = () => {
font-size: 15px;
text-align: justify;
word-break: break-all;
- max-width: 100%;
box-sizing: border-box;
}
diff --git a/frontend/src/views/chat/index.vue b/frontend/src/views/chat/index.vue
index e020eb13..aad932ca 100644
--- a/frontend/src/views/chat/index.vue
+++ b/frontend/src/views/chat/index.vue
@@ -1,7 +1,7 @@
-