mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 09:44:59 +00:00
feat: Use Unicode triangles for leaderboard toggle button
This commit is contained in:
parent
434a1c6710
commit
0a15dd311a
1 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ Aider works best with high-scoring models, though it [can connect to almost any
|
|||
{% assign row_index = forloop.index0 %}
|
||||
<tr style="border-bottom: 1px solid #ddd;" id="main-row-{{ row_index }}">
|
||||
<td style="padding: 8px; text-align: center;">
|
||||
<button class="toggle-details" data-target="details-{{ row_index }}" style="background: none; border: none; cursor: pointer; font-size: 16px; padding: 0;">></button>
|
||||
<button class="toggle-details" data-target="details-{{ row_index }}" style="background: none; border: none; cursor: pointer; font-size: 16px; padding: 0;">▶</button>
|
||||
</td>
|
||||
<td style="padding: 8px;"><span>{{ row.model }}</span></td>
|
||||
<td class="bar-cell">
|
||||
|
@ -252,7 +252,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||
if (targetRow) {
|
||||
const isVisible = targetRow.style.display !== 'none';
|
||||
targetRow.style.display = isVisible ? 'none' : 'table-row';
|
||||
this.textContent = isVisible ? '>' : 'v'; // Use chevrons
|
||||
this.textContent = isVisible ? '▶' : '▼'; // Use Unicode triangles
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue