fix(ui): 管家 Tab 统计栏显示管家专属摘要,不再显示聊天统计
This commit is contained in:
@@ -398,7 +398,18 @@ export function RightPanel({ simpleMode = false }: RightPanelProps) {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</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="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">
|
<div className="flex items-center gap-2 text-gray-500 dark:text-gray-400">
|
||||||
<BarChart3 className="w-3.5 h-3.5" />
|
<BarChart3 className="w-3.5 h-3.5" />
|
||||||
@@ -411,6 +422,7 @@ export function RightPanel({ simpleMode = false }: RightPanelProps) {
|
|||||||
<span>{runtimeSummary}</span>
|
<span>{runtimeSummary}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
)}
|
||||||
|
|
||||||
<div className="flex-1 overflow-y-auto custom-scrollbar p-4 space-y-4">
|
<div className="flex-1 overflow-y-auto custom-scrollbar p-4 space-y-4">
|
||||||
{activeTab === 'memory' ? (
|
{activeTab === 'memory' ? (
|
||||||
|
|||||||
Reference in New Issue
Block a user