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:
DrSmoothl committed 2026-05-17 16:31:30 +08:00
1 parent d7252b6c31
commit b3e37e2f7c
2 files changed
+39 -8

No files matched your search

+9
View File
@@ -247,3 +247,12 @@
-webkit-backdrop-filter: saturate(180%) blur(12px);
}
}
@keyframes progress-marquee {
0% {
transform: translateX(-100%);
}
100% {
transform: translateX(400%);
}
}