diff --git a/www/app.js b/www/app.js index 1d196f6..5ad83c9 100644 --- a/www/app.js +++ b/www/app.js @@ -415,7 +415,12 @@ function renderAgentsPage() { ${recentAgents.length > 0 ? `
-
🕐 最近使用
+
+
🕐 最近使用
+ ${totalRecentCount > 5 ? ` +
更多>>
+ ` : ''} +
${recentAgents.map(agent => `
@@ -429,11 +434,6 @@ function renderAgentsPage() {
`).join('')} - ${totalRecentCount > 5 ? ` -
- 查看全部 ${totalRecentCount} 个历史使用... -
- ` : ''}
` : ''} diff --git a/www/index.html b/www/index.html index 2f4b087..abbb52b 100644 --- a/www/index.html +++ b/www/index.html @@ -8,12 +8,12 @@ AI助手 - +
- - + + \ No newline at end of file diff --git a/www/style.css b/www/style.css index 5dcb76f..58dba16 100644 --- a/www/style.css +++ b/www/style.css @@ -185,6 +185,28 @@ body { margin-bottom: 12px; } +.section-title-row { + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 12px; +} + +.section-title-row .section-title { + margin-bottom: 0; +} + +.section-more { + font-size: 14px; + color: var(--primary); + cursor: pointer; + transition: color 0.2s; +} + +.section-more:hover { + color: #5a67d8; +} + .agents-grid { display: grid; grid-template-columns: repeat(2, 1fr); @@ -279,22 +301,6 @@ body { color: var(--primary); } -.recent-agent-more { - padding: 12px 16px; - background: white; - border: 1px solid var(--border-color); - border-radius: 10px; - cursor: pointer; - text-align: center; - font-size: 14px; - color: var(--primary); - transition: all 0.2s; -} - -.recent-agent-more:hover { - background: rgba(102, 126, 234, 0.05); -} - /* 智能体历史页面 */ .agent-history-page { display: flex;