From 7f576827b0be49754f3f815103f0f7ef1e8a1e9a Mon Sep 17 00:00:00 2001 From: hubian <908234780@qq.com> Date: Tue, 28 Apr 2026 10:55:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8E=86=E5=8F=B2=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E5=B7=A6=E8=BE=B9=E6=99=BA=E8=83=BD=E4=BD=93?= =?UTF-8?q?=E5=90=8D=E5=AD=97=E5=8F=B3=E8=BE=B9=E6=A0=87=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- www/app.js | 8 ++++---- www/style.css | 30 +++++++++++++++++++----------- 2 files changed, 23 insertions(+), 15 deletions(-) diff --git a/www/app.js b/www/app.js index 8b8d55a..9cf0728 100644 --- a/www/app.js +++ b/www/app.js @@ -789,10 +789,10 @@ function renderAgentsPage() {
${conv.agent ? conv.agent.avatar : '🤖'} - ${conv.title} + ${conv.agent ? conv.agent.name : '未知智能体'}
- ${conv.agent ? getCategoryLabel(conv.agent.category) : '未知'} + ${conv.title} ${formatTime(conv.updatedAt)}
@@ -3003,10 +3003,10 @@ function showAgentHistoryPage() {
${conv.agent ? conv.agent.avatar : '🤖'} - ${conv.title} + ${conv.agent ? conv.agent.name : '未知智能体'}
- ${conv.agent ? getCategoryLabel(conv.agent.category) : '未知'} + ${conv.title} ${formatTime(conv.updatedAt)}
diff --git a/www/style.css b/www/style.css index ba81b2f..7a024c8 100644 --- a/www/style.css +++ b/www/style.css @@ -1730,12 +1730,13 @@ body { color: var(--primary); } -.recent-agent-category { - font-size: 12px; - color: var(--primary); - background: rgba(102, 126, 234, 0.1); - padding: 2px 8px; - border-radius: 4px; +.recent-agent-title { + font-size: 13px; + color: #333; + max-width: 120px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; } /* 智能体历史页面 */ @@ -1807,12 +1808,19 @@ body { color: var(--primary); } -.agent-history-category { - font-size: 12px; +.agent-history-title { + font-size: 13px; + color: #333; + max-width: 150px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +.agent-history-agent-name { + font-size: 13px; color: var(--primary); - background: rgba(102, 126, 234, 0.1); - padding: 2px 8px; - border-radius: 4px; + font-weight: 500; } /* ==================== 我的页面 ==================== */