Skip to content

Commit f626af6

Browse files
committed
red for indicator when error
1 parent f914518 commit f626af6

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

static/script.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ async function updateQueueSize() {
123123
document.getElementById('max-queue-size').textContent = '?';
124124
queueProgressBar.style.width = '0%';
125125
statusIndicator.classList.remove('indicator-low', 'indicator-medium', 'indicator-high');
126+
statusIndicator.classList.add('indicator-error');
126127
queueProgressBar.classList.remove('progress-low', 'progress-medium', 'progress-high');
127128
queueLoadText.classList.remove('low-load', 'medium-load', 'high-load');
128129
queueLoadText.textContent = 'Error';

static/styles.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,9 @@ code[class*="language-"] {
313313
width: 12px;
314314
height: 12px;
315315
border-radius: 50%;
316-
background-color: #10b981; /* Default green */
316+
display: inline-block;
317+
margin-right: 8px;
318+
background-color: var(--success-color);
317319
}
318320

319321
.queue-stats {
@@ -1160,4 +1162,9 @@ code[class*="language-"] {
11601162
.playground-container {
11611163
grid-template-columns: 1fr;
11621164
}
1165+
}
1166+
1167+
.indicator-error {
1168+
background-color: var(--error-color);
1169+
animation: pulse 2s infinite;
11631170
}

0 commit comments

Comments
 (0)