|
412 | 412 | .flash-btn-outline:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); } |
413 | 413 |
|
414 | 414 | .flash-progress { |
415 | | - margin-top: 1rem; display: none; |
| 415 | + margin-top: 1rem; |
416 | 416 | } |
417 | 417 | .flash-progress-bar { |
418 | 418 | height: 6px; border-radius: 3px; background: var(--bg); |
|
433 | 433 | background: #0c0c0c; border: 1px solid var(--border); |
434 | 434 | font-family: var(--mono); font-size: 0.78rem; line-height: 1.5; |
435 | 435 | color: #4ade80; height: 160px; overflow-y: auto; white-space: pre-wrap; |
436 | | - word-break: break-all; display: none; |
| 436 | + word-break: break-all; |
437 | 437 | } |
438 | 438 |
|
439 | 439 | .flash-unsupported { |
|
931 | 931 | <div class="flash-progress-bar"> |
932 | 932 | <div class="flash-progress-fill" id="flash-progress-fill"></div> |
933 | 933 | </div> |
934 | | - <div class="flash-progress-text" id="flash-progress-text">0%</div> |
| 934 | + <div class="flash-progress-text" id="flash-progress-text">Ready</div> |
935 | 935 | </div> |
936 | | - <div class="flash-log" id="flash-log"></div> |
| 936 | + <div class="flash-log" id="flash-log">Waiting for flash...</div> |
937 | 937 | </div> |
938 | 938 | </div> |
939 | 939 |
|
@@ -1183,11 +1183,13 @@ <h2 class="section-title reveal" data-en="Join the Community" data-zh="加入社 |
1183 | 1183 |
|
1184 | 1184 | function showLog() { /* output goes to serial-output now */ } |
1185 | 1185 | function showProgress(pct, text) { |
1186 | | - flashProgress.style.display = 'block'; |
1187 | 1186 | flashProgressFill.style.width = pct + '%'; |
1188 | 1187 | flashProgressText.textContent = text || (pct + '%'); |
1189 | 1188 | } |
1190 | | -function hideProgress() { flashProgress.style.display = 'none'; } |
| 1189 | +function hideProgress() { |
| 1190 | + flashProgressFill.style.width = '0%'; |
| 1191 | + flashProgressText.textContent = 'Ready'; |
| 1192 | +} |
1191 | 1193 |
|
1192 | 1194 | function serialControlsSetDisabled(disabled) { |
1193 | 1195 | var panel = document.querySelector('.serial-panel'); |
|
0 commit comments