Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

Polish download percentage badge UI (#319)

Alcahest6eb7974a7891
diff --git a/src/components/ReasoningModelSelector.tsx b/src/components/ReasoningModelSelector.tsx
index 4d343732a..c648ae8c1 100644
--- a/src/components/ReasoningModelSelector.tsx
+++ b/src/components/ReasoningModelSelector.tsx
@@ -156,15 +156,19 @@ function GpuStatusBadge() {
}
if (downloading && progress) {
+ const roundedPercent = Math.round(progress.percentage);
return (
<div className="flex items-center gap-2 mt-2 px-1">
- <div className="flex-1 h-1 bg-muted rounded-full overflow-hidden">
+ <div className="flex-1 h-1.5 bg-muted rounded-full overflow-hidden">
<div
- className="h-full bg-purple-500 transition-all"
- style={{ width: `${progress.percentage}%` }}
+ className="h-full bg-primary transition-all"
+ style={{ width: `${Math.min(progress.percentage, 100)}%` }}
/>
</div>
- <span className="text-xs text-muted-foreground tabular-nums">{progress.percentage}%</span>
+ <div className="relative flex items-center justify-center h-5 min-w-5 px-1 shrink-0">
+ <div className="absolute inset-0 rounded-md bg-primary/15" />
+ <span className="relative text-xs font-bold text-primary tabular-nums">{roundedPercent}%</span>
+ </div>
<button
type="button"
onClick={() => window.electronAPI?.cancelLlamaVulkanDownload?.()}
diff --git a/src/components/ui/DownloadProgressBar.tsx b/src/components/ui/DownloadProgressBar.tsx
index 8cb1702ab..5cc1a46f7 100644
--- a/src/components/ui/DownloadProgressBar.tsx
+++ b/src/components/ui/DownloadProgressBar.tsx
@@ -1,5 +1,6 @@
import { Loader2 } from "lucide-react";
import { formatETA, type DownloadProgress } from "../../hooks/useModelDownload";
+
interface DownloadProgressBarProps {
modelName: string;
progress: DownloadProgress;
@@ -26,7 +27,7 @@ export function DownloadProgressBar({
return (
<div className="px-2.5 py-2 border-b border-white/5 dark:border-border-subtle">
<div className="flex items-center gap-2 mb-2">
- <div className="relative flex items-center justify-center w-6 h-6">
+ <div className="relative flex items-center justify-center h-6 min-w-6 px-1.5 shrink-0">
<div
className={`absolute inset-0 rounded-md bg-primary/15 ${isInstalling || indeterminate ? "animate-pulse" : ""}`}
/>