mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
feat: Color the cost bar past the tear marker darker blue
This commit is contained in:
parent
27b51d51d8
commit
53a64c88ad
1 changed files with 10 additions and 0 deletions
|
@ -221,6 +221,16 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||
tearMarker.style.left = '90%'; // Position at 90% (around $45)
|
||||
bar.parentNode.appendChild(tearMarker);
|
||||
|
||||
// Create a darker section after the tear
|
||||
const darkSection = document.createElement('div');
|
||||
darkSection.className = 'bar-viz';
|
||||
darkSection.style.width = '10%'; // From 90% to 100%
|
||||
darkSection.style.left = '90%';
|
||||
darkSection.style.backgroundColor = 'rgba(13, 110, 253, 0.6)'; // Darker blue
|
||||
darkSection.style.borderRight = '1px solid rgba(13, 110, 253, 0.8)';
|
||||
darkSection.style.zIndex = '1';
|
||||
bar.parentNode.appendChild(darkSection);
|
||||
|
||||
// Add a marker at the end of the bar
|
||||
const marker = document.createElement('div');
|
||||
marker.className = 'cost-exceeded-marker';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue