mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 09:44:59 +00:00
feat: Remove numeric labels below cost bars in leaderboard table
This commit is contained in:
parent
1622531d85
commit
1a080ba71c
2 changed files with 1 additions and 18 deletions
|
@ -267,14 +267,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||||
tick.className = 'cost-tick';
|
tick.className = 'cost-tick';
|
||||||
tick.style.left = `${percent}%`;
|
tick.style.left = `${percent}%`;
|
||||||
|
|
||||||
// Add dollar amount labels to the ticks
|
// No dollar amount labels
|
||||||
if (index % 2 === 0) { // Only label every other tick to avoid crowding
|
|
||||||
const label = document.createElement('div');
|
|
||||||
label.className = 'cost-tick-label';
|
|
||||||
label.textContent = '$' + tickValues[index];
|
|
||||||
label.style.left = `${percent}%`;
|
|
||||||
cell.appendChild(label);
|
|
||||||
}
|
|
||||||
|
|
||||||
cell.appendChild(tick);
|
cell.appendChild(tick);
|
||||||
}
|
}
|
||||||
|
|
|
@ -171,16 +171,6 @@ human intervention.
|
||||||
background-color: rgba(170, 170, 170, 0.5);
|
background-color: rgba(170, 170, 170, 0.5);
|
||||||
z-index: 2; /* Above the bar but below the text */
|
z-index: 2; /* Above the bar but below the text */
|
||||||
}
|
}
|
||||||
.cost-tick-label {
|
|
||||||
position: absolute;
|
|
||||||
top: 50%;
|
|
||||||
transform: translateY(20px);
|
|
||||||
font-size: 10px;
|
|
||||||
color: #666;
|
|
||||||
z-index: 2;
|
|
||||||
text-align: center;
|
|
||||||
margin-left: -10px;
|
|
||||||
}
|
|
||||||
.cost-tear-marker {
|
.cost-tear-marker {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 90%; /* Position at 90% (around $45) */
|
left: 90%; /* Position at 90% (around $45) */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue