Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e6b3465aa7 |
10
www/app.js
10
www/app.js
@@ -415,7 +415,12 @@ function renderAgentsPage() {
|
|||||||
<!-- 最近使用 -->
|
<!-- 最近使用 -->
|
||||||
${recentAgents.length > 0 ? `
|
${recentAgents.length > 0 ? `
|
||||||
<div class="agents-section">
|
<div class="agents-section">
|
||||||
|
<div class="section-title-row">
|
||||||
<div class="section-title">🕐 最近使用</div>
|
<div class="section-title">🕐 最近使用</div>
|
||||||
|
${totalRecentCount > 5 ? `
|
||||||
|
<div class="section-more" id="showAllRecentBtn">更多>></div>
|
||||||
|
` : ''}
|
||||||
|
</div>
|
||||||
<div class="recent-agents-list">
|
<div class="recent-agents-list">
|
||||||
${recentAgents.map(agent => `
|
${recentAgents.map(agent => `
|
||||||
<div class="recent-agent-item" data-id="${agent.id}">
|
<div class="recent-agent-item" data-id="${agent.id}">
|
||||||
@@ -429,11 +434,6 @@ function renderAgentsPage() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
`).join('')}
|
`).join('')}
|
||||||
${totalRecentCount > 5 ? `
|
|
||||||
<div class="recent-agent-more" id="showAllRecentBtn">
|
|
||||||
<span>查看全部 ${totalRecentCount} 个历史使用...</span>
|
|
||||||
</div>
|
|
||||||
` : ''}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
` : ''}
|
` : ''}
|
||||||
|
|||||||
@@ -8,12 +8,12 @@
|
|||||||
<meta http-equiv="Pragma" content="no-cache">
|
<meta http-equiv="Pragma" content="no-cache">
|
||||||
<meta http-equiv="Expires" content="0">
|
<meta http-equiv="Expires" content="0">
|
||||||
<title>AI助手</title>
|
<title>AI助手</title>
|
||||||
<link rel="stylesheet" href="style.css?v=3.1.0">
|
<link rel="stylesheet" href="style.css?v=3.1.1">
|
||||||
<link rel="manifest" href="manifest.json">
|
<link rel="manifest" href="manifest.json">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
<script src="marked.min.js?v=3.1.0"></script>
|
<script src="marked.min.js?v=3.1.1"></script>
|
||||||
<script src="app.js?v=3.1.0"></script>
|
<script src="app.js?v=3.1.1"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
@@ -185,6 +185,28 @@ body {
|
|||||||
margin-bottom: 12px;
|
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 {
|
.agents-grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(2, 1fr);
|
grid-template-columns: repeat(2, 1fr);
|
||||||
@@ -279,22 +301,6 @@ body {
|
|||||||
color: var(--primary);
|
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 {
|
.agent-history-page {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
Reference in New Issue
Block a user