From 97f8f1a8f0c47b363599cbd6f54712d38577502d Mon Sep 17 00:00:00 2001
From: wanghanlin <1533525126@qq.com>
Date: Wed, 19 Aug 2026 10:47:05 +0800
Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E5=A4=8D=E5=86=85=E5=AE=B9=E8=87=AA?=
=?UTF-8?q?=E9=80=82=E5=BA=94=20SDK=20=E5=BC=B9=E7=AA=97=E5=AE=BD=E5=BA=A6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
client/src/styles.ts | 2 ++
src/main/resources/static/sdk/test.html | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/client/src/styles.ts b/client/src/styles.ts
index c53eccc..7100a44 100644
--- a/client/src/styles.ts
+++ b/client/src/styles.ts
@@ -49,6 +49,8 @@ function cssVars(config: ResolvedConfig): string {
--td-brand-color-disabled: ${lighter};
--td-brand-color-light: ${lighter};
--td-brand-color-light-hover: ${lighter};
+ /* 覆盖 TDesign chat-item 默认 800px 限制,使 AI 回复内容自适应 SDK 弹窗宽度 */
+ --td-chat-item-content-max-width: 100%;
`;
}
diff --git a/src/main/resources/static/sdk/test.html b/src/main/resources/static/sdk/test.html
index e78fb3b..f3c0d36 100644
--- a/src/main/resources/static/sdk/test.html
+++ b/src/main/resources/static/sdk/test.html
@@ -11,8 +11,8 @@
-
+