feat(ui): add indeterminate mode to Progress
Desktop's core-download dialog needs to show progress while the server returns no Content-Length (some mirrors omit it; the SnowLuma core release artifact does have it but GitHub's CDN sometimes strips it on redirects). Hard-coded 50% was a placeholder. Add an `indeterminate` boolean prop: when true, render a marquee bar that animates left-to-right indefinitely. When false, render the familiar bytes-done / bytes-total fill at `value%`. Hooked up via a new `@keyframes progress-marquee` in theme.css. Also dropped the bar's CSS transition from 500ms → 200ms so live download updates feel responsive instead of laggy.
This commit is contained in:
2 files changed
+39
-8
No files matched your search
@@ -247,3 +247,12 @@
|
||||
-webkit-backdrop-filter: saturate(180%) blur(12px);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes progress-marquee {
|
||||
0% {
|
||||
transform: translateX(-100%);
|
||||
}
|
||||
100% {
|
||||
transform: translateX(400%);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user