fix: gate native window reveal on renderer load
Keep BrowserWindow hidden until both ready-to-show and did-finish-load are complete, preventing the incomplete header from reaching the screen. Render a static upload-speed baseline beneath the transparent canvas so the zero line exists independently of renderer timers. Add regression coverage for both reveal event orders, load failures, and the script-independent header baseline.
This commit is contained in:
+21
-1
@@ -1960,7 +1960,27 @@ select.hs-input { max-width: none; width: auto; min-width: 140px; }
|
||||
transition: opacity .16s ease;
|
||||
}
|
||||
|
||||
.upload-speed-chart {
|
||||
position: relative;
|
||||
min-width: 0;
|
||||
height: 22px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.upload-speed-baseline {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 2px;
|
||||
height: 2px;
|
||||
border-radius: 999px;
|
||||
background: var(--success);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.upload-speed-sparkline canvas {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
width: 100%;
|
||||
height: 22px;
|
||||
display: block;
|
||||
@@ -4053,7 +4073,7 @@ input[type="checkbox"] {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.upload-speed-sparkline canvas {
|
||||
.upload-speed-chart {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user