fix: center update metric separators
Place both metric separators in identical fixed-width grid columns and center them explicitly so size, speed, and ETA maintain balanced spacing.
This commit is contained in:
+4
-3
@@ -2527,9 +2527,9 @@ select.hs-input { max-width: none; width: auto; min-width: 140px; }
|
||||
#updateProgressDetails {
|
||||
min-width: 0;
|
||||
display: grid;
|
||||
grid-template-columns: 19ch auto 11ch auto 10ch;
|
||||
grid-template-columns: 19ch 2ch 11ch 2ch 10ch;
|
||||
align-items: baseline;
|
||||
gap: 5px;
|
||||
column-gap: 0;
|
||||
color: var(--text-dim);
|
||||
font-size: 11px;
|
||||
font-variant-numeric: tabular-nums;
|
||||
@@ -2542,7 +2542,8 @@ select.hs-input { max-width: none; width: auto; min-width: 140px; }
|
||||
}
|
||||
|
||||
.update-progress-separator {
|
||||
text-align: center;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
}
|
||||
|
||||
#updateProgressSpeed,
|
||||
|
||||
@@ -177,6 +177,7 @@ test('header occupies its final geometry before asynchronous initialization', ()
|
||||
assert.match(css, /\.update-dialog\s*\{[^}]*width:\s*min\(576px,\s*100%\);/su);
|
||||
assert.match(css, /\.update-release-notes\s*\{[^}]*height:\s*min\(264px,\s*48vh\);/su);
|
||||
assert.match(html, /class="update-progress-footer"[\s\S]*id="updateProgressDetails"[\s\S]*id="updateProgressSize"[\s\S]*id="updateProgressSpeed"[\s\S]*id="updateProgressEta"[\s\S]*id="updateProgressText"/u);
|
||||
assert.match(css, /#updateProgressDetails\s*\{[^}]*display:\s*grid;[^}]*grid-template-columns:\s*19ch auto 11ch auto 10ch;[^}]*font-variant-numeric:\s*tabular-nums;/su);
|
||||
assert.match(css, /#updateProgressDetails\s*\{[^}]*display:\s*grid;[^}]*grid-template-columns:\s*19ch 2ch 11ch 2ch 10ch;[^}]*column-gap:\s*0;[^}]*font-variant-numeric:\s*tabular-nums;/su);
|
||||
assert.match(css, /\.update-progress-separator\s*\{[^}]*display:\s*grid;[^}]*place-items:\s*center;/su);
|
||||
assert.match(css, /#updateProgressDetails\[hidden\]\s*\{[^}]*display:\s*none;/su);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user