Tidy agent description display: truncate on home cards, scrollable box on admin table
- Home page agent cards show truncated purpose (max 100 chars) instead of full description - Admin dashboard table shows description in a scrollable container (max 80px) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
0ba77d9b99
commit
d609abe606
2 changed files with 3 additions and 3 deletions
|
|
@ -1171,7 +1171,7 @@ function displayAgents(agents) {
|
|||
${agent.verification_status === 'needs_verification' ? ' <span class="badge bg-warning text-dark" style="font-size:0.65em;">Needs Verification</span>' : ''}
|
||||
${agent.verification_status === 'verified' ? ' <span class="badge bg-success" style="font-size:0.65em;">Verified</span>' : ''}
|
||||
</div>
|
||||
<small class="text-muted">${agent.agent_description || 'No description'}</small>
|
||||
${agent.agent_description ? `<div class="text-muted small mt-1" style="max-height: 80px; overflow-y: auto; border: 1px solid #e2e8f0; border-radius: 4px; padding: 6px 8px; background: #f8f9fa;">${agent.agent_description}</div>` : '<small class="text-muted">No description</small>'}
|
||||
</td>
|
||||
<td>
|
||||
<div class="d-flex align-items-center">
|
||||
|
|
|
|||
|
|
@ -178,7 +178,7 @@
|
|||
</div>
|
||||
<div>
|
||||
<h6 class="mb-0">{{ agent.agent_name }}</h6>
|
||||
<small class="text-muted">{{ agent.agent_description[:50] }}{% if agent.agent_description|length > 50 %}...{% endif %}</small>
|
||||
<small class="text-muted">{{ agent.agent_purpose[:80] if agent.agent_purpose else 'No purpose listed' }}{% if agent.agent_purpose and agent.agent_purpose|length > 80 %}...{% endif %}</small>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
|
|
@ -730,7 +730,7 @@ function displayAgents(agentsToShow) {
|
|||
<div class="d-flex justify-content-between align-items-start">
|
||||
<div>
|
||||
<h6 class="mb-1 fw-bold">${agent.agent_name}</h6>
|
||||
<p class="text-muted mb-2 small">${agent.agent_description || 'No description'}</p>
|
||||
<p class="text-muted mb-2 small">${(agent.agent_purpose || 'No purpose listed').length > 100 ? (agent.agent_purpose || '').substring(0, 100) + '...' : (agent.agent_purpose || 'No purpose listed')}</p>
|
||||
<div class="d-flex gap-2 align-items-center flex-wrap mb-1">
|
||||
<span class="agent-status status-${agent.agent_status || 'Development'}">
|
||||
${agent.agent_status || 'Development'}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue