fix: 最近使用改为标题右侧显示更多>>链接

This commit is contained in:
2026-04-26 23:48:42 +08:00
parent b6455e4720
commit e6b3465aa7
3 changed files with 31 additions and 25 deletions

View File

@@ -415,7 +415,12 @@ function renderAgentsPage() {
<!-- 最近使用 -->
${recentAgents.length > 0 ? `
<div class="agents-section">
<div class="section-title">🕐 最近使用</div>
<div class="section-title-row">
<div class="section-title">🕐 最近使用</div>
${totalRecentCount > 5 ? `
<div class="section-more" id="showAllRecentBtn">更多&gt;&gt;</div>
` : ''}
</div>
<div class="recent-agents-list">
${recentAgents.map(agent => `
<div class="recent-agent-item" data-id="${agent.id}">
@@ -429,11 +434,6 @@ function renderAgentsPage() {
</div>
</div>
`).join('')}
${totalRecentCount > 5 ? `
<div class="recent-agent-more" id="showAllRecentBtn">
<span>查看全部 ${totalRecentCount} 个历史使用...</span>
</div>
` : ''}
</div>
</div>
` : ''}