fix: 历史使用记录左边智能体名字右边标题
This commit is contained in:
@@ -789,10 +789,10 @@ function renderAgentsPage() {
|
|||||||
<div class="recent-agent-item" data-conv-id="${conv.id}">
|
<div class="recent-agent-item" data-conv-id="${conv.id}">
|
||||||
<div class="recent-agent-left">
|
<div class="recent-agent-left">
|
||||||
<span class="recent-agent-avatar">${conv.agent ? conv.agent.avatar : '🤖'}</span>
|
<span class="recent-agent-avatar">${conv.agent ? conv.agent.avatar : '🤖'}</span>
|
||||||
<span class="recent-agent-name">${conv.title}</span>
|
<span class="recent-agent-name">${conv.agent ? conv.agent.name : '未知智能体'}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="recent-agent-right">
|
<div class="recent-agent-right">
|
||||||
<span class="recent-agent-category">${conv.agent ? getCategoryLabel(conv.agent.category) : '未知'}</span>
|
<span class="recent-agent-title">${conv.title}</span>
|
||||||
<span class="recent-agent-time">${formatTime(conv.updatedAt)}</span>
|
<span class="recent-agent-time">${formatTime(conv.updatedAt)}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -3003,10 +3003,10 @@ function showAgentHistoryPage() {
|
|||||||
<div class="agent-history-item" data-conv-id="${conv.id}">
|
<div class="agent-history-item" data-conv-id="${conv.id}">
|
||||||
<div class="agent-history-left">
|
<div class="agent-history-left">
|
||||||
<span class="agent-history-avatar">${conv.agent ? conv.agent.avatar : '🤖'}</span>
|
<span class="agent-history-avatar">${conv.agent ? conv.agent.avatar : '🤖'}</span>
|
||||||
<span class="agent-history-name">${conv.title}</span>
|
<span class="agent-history-agent-name">${conv.agent ? conv.agent.name : '未知智能体'}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="agent-history-right">
|
<div class="agent-history-right">
|
||||||
<span class="agent-history-category">${conv.agent ? getCategoryLabel(conv.agent.category) : '未知'}</span>
|
<span class="agent-history-title">${conv.title}</span>
|
||||||
<span class="agent-history-time">${formatTime(conv.updatedAt)}</span>
|
<span class="agent-history-time">${formatTime(conv.updatedAt)}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1730,12 +1730,13 @@ body {
|
|||||||
color: var(--primary);
|
color: var(--primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
.recent-agent-category {
|
.recent-agent-title {
|
||||||
font-size: 12px;
|
font-size: 13px;
|
||||||
color: var(--primary);
|
color: #333;
|
||||||
background: rgba(102, 126, 234, 0.1);
|
max-width: 120px;
|
||||||
padding: 2px 8px;
|
overflow: hidden;
|
||||||
border-radius: 4px;
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 智能体历史页面 */
|
/* 智能体历史页面 */
|
||||||
@@ -1807,12 +1808,19 @@ body {
|
|||||||
color: var(--primary);
|
color: var(--primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
.agent-history-category {
|
.agent-history-title {
|
||||||
font-size: 12px;
|
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);
|
color: var(--primary);
|
||||||
background: rgba(102, 126, 234, 0.1);
|
font-weight: 500;
|
||||||
padding: 2px 8px;
|
|
||||||
border-radius: 4px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ==================== 我的页面 ==================== */
|
/* ==================== 我的页面 ==================== */
|
||||||
|
|||||||
Reference in New Issue
Block a user