From e7de47d0d96112423aaee53578a169067b61f1c5 Mon Sep 17 00:00:00 2001 From: gaoziman <2942894660@qq.com> Date: Sun, 28 Dec 2025 17:29:08 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E9=A1=B5=E9=9D=A2):=20=E9=87=8D=E6=9E=84?= =?UTF-8?q?=E8=81=8A=E5=A4=A9=E9=A1=B5=E9=9D=A2=E5=A4=B4=E9=83=A8=E5=B9=B6?= =?UTF-8?q?=E9=9B=86=E6=88=90=E6=A0=87=E7=AD=BE=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 重构 Header 布局为两行结构 - 第一行:标题 + 操作按钮(思考、摘要、分享、导出) - 第二行:助手信息 + 标签管理器 - 添加渐变分隔线增强视觉层次 - 优化操作按钮样式统一为圆角方形 - 菜单文字汉化(Rename -> 重命名,Delete -> 删除) --- src/app/chat/[id]/page.tsx | 108 ++++++++++++++++++++----------------- 1 file changed, 60 insertions(+), 48 deletions(-) diff --git a/src/app/chat/[id]/page.tsx b/src/app/chat/[id]/page.tsx index 585b0fb..769b669 100644 --- a/src/app/chat/[id]/page.tsx +++ b/src/app/chat/[id]/page.tsx @@ -14,6 +14,7 @@ import { LinkPreviewModal } from '@/components/features/LinkPreviewModal'; import { ExportDropdown } from '@/components/features/ExportDropdown'; import { ShareModal } from '@/components/features/ShareModal'; import { SummaryButton } from '@/components/features/SummaryGenerator'; +import { TagManager } from '@/components/features/Tags'; import { cn } from '@/lib/utils'; import { useConversation, useConversations } from '@/hooks/useConversations'; import { useStreamChat, type ChatMessage } from '@/hooks/useStreamChat'; @@ -457,10 +458,10 @@ export default function ChatPage({ params }: PageProps) { )} > {/* 固定顶部 Header */} -
- {/* 第一行:标题和操作按钮 */} -
-
+
+ {/* 第一行:标题 + 操作按钮 */} +
+
setSidebarOpen(!sidebarOpen)} /> {/* 标题区域 - 可点击显示下拉菜单 */} @@ -509,7 +510,7 @@ export default function ChatPage({ params }: PageProps) {
)}
)}
-
+ + {/* 右侧操作按钮 */} +
{/* 思考模式开关 - 只在非 Codex 模型时显示 */} - {!selectedModelId.toLowerCase().includes('codex') && ( + {!selectedModelId.toLowerCase().includes('codex') && ( + + )} + + {/* 智能摘要按钮 */} + ({ + role: m.role, + content: m.content, + }))} + hasSummary={!!conversation?.summary} + existingSummary={conversation?.summary} + /> + - )} - - {/* 智能摘要按钮 */} - ({ - role: m.role, - content: m.content, - }))} - hasSummary={!!conversation?.summary} - existingSummary={conversation?.summary} - /> - - - +
- {/* 第二行:助手信息 */} -
+ {/* 渐变分隔线 */} +
+ + {/* 第二行:助手信息 + 标签管理 */} +
+ {/* 左侧:助手信息 */} + + {/* 右侧:标签管理区域 */} + {conversation && !isNewChat && ( + + )}