Skip to content

Commit e2c7269

Browse files
authored
Merge pull request #105 from zevorn/website/fix-flash-panel-height
website: fix flash panel height jump during flashing
2 parents a9eee5c + d2419e7 commit e2c7269

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

website/index.html

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@
412412
.flash-btn-outline:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
413413

414414
.flash-progress {
415-
margin-top: 1rem; display: none;
415+
margin-top: 1rem;
416416
}
417417
.flash-progress-bar {
418418
height: 6px; border-radius: 3px; background: var(--bg);
@@ -433,7 +433,7 @@
433433
background: #0c0c0c; border: 1px solid var(--border);
434434
font-family: var(--mono); font-size: 0.78rem; line-height: 1.5;
435435
color: #4ade80; height: 160px; overflow-y: auto; white-space: pre-wrap;
436-
word-break: break-all; display: none;
436+
word-break: break-all;
437437
}
438438

439439
.flash-unsupported {
@@ -931,9 +931,9 @@ <h3>
931931
<div class="flash-progress-bar">
932932
<div class="flash-progress-fill" id="flash-progress-fill"></div>
933933
</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>
935935
</div>
936-
<div class="flash-log" id="flash-log"></div>
936+
<div class="flash-log" id="flash-log">Waiting for flash...</div>
937937
</div>
938938
</div>
939939

@@ -1183,11 +1183,13 @@ <h2 class="section-title reveal" data-en="Join the Community" data-zh="加入社
11831183

11841184
function showLog() { /* output goes to serial-output now */ }
11851185
function showProgress(pct, text) {
1186-
flashProgress.style.display = 'block';
11871186
flashProgressFill.style.width = pct + '%';
11881187
flashProgressText.textContent = text || (pct + '%');
11891188
}
1190-
function hideProgress() { flashProgress.style.display = 'none'; }
1189+
function hideProgress() {
1190+
flashProgressFill.style.width = '0%';
1191+
flashProgressText.textContent = 'Ready';
1192+
}
11911193

11921194
function serialControlsSetDisabled(disabled) {
11931195
var panel = document.querySelector('.serial-panel');

0 commit comments

Comments
 (0)