From c4fe34ed231105345fb0b95eb8baa350e98b1afe Mon Sep 17 00:00:00 2001
From: MT-Mint <798521692@qq.com>
Date: Wed, 15 Apr 2026 17:37:20 +0800
Subject: [PATCH] =?UTF-8?q?feat(ui):=20=E5=AE=8B=E5=AF=B9ui=E5=92=8C?=
=?UTF-8?q?=E8=BE=93=E5=85=A5=E6=A1=86placeholder=E6=9B=B4=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../app/workspace/chats/[thread_id]/page.tsx | 35 +++++-----
.../ai-elements/chain-of-thought.tsx | 2 +-
.../src/components/ai-elements/message.tsx | 12 +++-
.../src/components/ai-elements/suggestion.tsx | 2 +-
.../artifacts/artifact-file-list.tsx | 15 +++--
.../src/components/workspace/input-box.tsx | 2 +-
.../workspace/messages/message-group.tsx | 5 +-
.../workspace/messages/message-list-item.tsx | 5 +-
.../workspace/messages/message-list.tsx | 6 ++
frontend/src/core/i18n/locales/zh-CN.ts | 2 +-
frontend/src/styles/globals.css | 66 ++++++++++++++++++-
11 files changed, 117 insertions(+), 35 deletions(-)
diff --git a/frontend/src/app/workspace/chats/[thread_id]/page.tsx b/frontend/src/app/workspace/chats/[thread_id]/page.tsx
index 86f0ec1f..254e6191 100644
--- a/frontend/src/app/workspace/chats/[thread_id]/page.tsx
+++ b/frontend/src/app/workspace/chats/[thread_id]/page.tsx
@@ -472,8 +472,22 @@ export default function ChatPage() {
/>
) : (
-
-
+ {thread.values.artifacts?.length === 0 ? (
+
}
+ title="No artifact selected"
+ description="Select an artifact to view its details"
+ />
+ ) : (
+
+
+
+ {t.common.artifacts}
+
+
-
- {thread.values.artifacts?.length === 0 ? (
-
}
- title="No artifact selected"
- description="Select an artifact to view its details"
- />
- ) : (
-
-
-
- {t.common.artifacts}
-
@@ -656,7 +657,7 @@ export default function ChatPage() {
{/* MARK: 开发测试:iframe 通信功能测试面板 */}
- {process.env.NODE_ENV !== "production" && }
+ {/* {process.env.NODE_ENV !== "production" && } */}
);
diff --git a/frontend/src/components/ai-elements/chain-of-thought.tsx b/frontend/src/components/ai-elements/chain-of-thought.tsx
index 8fda3db0..715292de 100644
--- a/frontend/src/components/ai-elements/chain-of-thought.tsx
+++ b/frontend/src/components/ai-elements/chain-of-thought.tsx
@@ -207,7 +207,7 @@ export const ChainOfThoughtContent = memo(
& {
from: UIMessage["role"];
+ isFirstInSession?: boolean;
};
-export const Message = ({ className, from, ...props }: MessageProps) => (
+export const Message = ({
+ className,
+ from,
+ isFirstInSession = false,
+ ...props
+}: MessageProps) => (
(
handleClick(file)}
>
-
+
-
- {getFileIcon(file, "size-6 stroke-[1.5px] stroke-[#333333]")}
+
+ {getFileIcon(file, "size-9 stroke-[1px] stroke-[#333333]")}
-
+
{getFileExtensionDisplayName(file)} file
@@ -124,7 +124,10 @@ export function ArtifactFileList({
target="_blank"
onClick={(e) => e.stopPropagation()}
>
-