fix(ui): 管家 Tab 统计栏显示管家专属摘要,不再显示聊天统计

This commit is contained in:
iven
2026-04-11 12:58:26 +08:00
parent f5c6abf03f
commit ce10befff1

View File

@@ -398,7 +398,18 @@ export function RightPanel({ simpleMode = false }: RightPanelProps) {
)}
</div>
{/* 消息统计 */}
{/* 消息统计 — butler tab 时显示管家专用摘要 */}
{activeTab === 'butler' ? (
<div className="px-4 py-2 border-b border-gray-100 dark:border-gray-800 flex items-center justify-between text-xs">
<div className="flex items-center gap-2 text-gray-500 dark:text-gray-400">
<span className="font-medium"></span>
</div>
<div className={`flex items-center gap-1 ${connected ? 'text-emerald-500' : 'text-gray-400'}`}>
{connected ? <Wifi className="w-3.5 h-3.5" /> : <WifiOff className="w-3.5 h-3.5" />}
<span>{runtimeSummary}</span>
</div>
</div>
) : (
<div className="px-4 py-2 border-b border-gray-100 dark:border-gray-800 flex items-center justify-between text-xs">
<div className="flex items-center gap-2 text-gray-500 dark:text-gray-400">
<BarChart3 className="w-3.5 h-3.5" />
@@ -411,6 +422,7 @@ export function RightPanel({ simpleMode = false }: RightPanelProps) {
<span>{runtimeSummary}</span>
</div>
</div>
)}
<div className="flex-1 overflow-y-auto custom-scrollbar p-4 space-y-4">
{activeTab === 'memory' ? (