fix: 最近使用改为标题右侧显示更多>>链接
This commit is contained in:
12
www/app.js
12
www/app.js
@@ -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">更多>></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>
|
||||
` : ''}
|
||||
|
||||
Reference in New Issue
Block a user