Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix: scan button text overlap during loading state

Louis Beaumont2f1816372251
diff --git a/apps/screenpipe-app-tauri/components/settings/apple-intelligence-card.tsx b/apps/screenpipe-app-tauri/components/settings/apple-intelligence-card.tsx
index 00ad4b219..a1639b5db 100644
--- a/apps/screenpipe-app-tauri/components/settings/apple-intelligence-card.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/apple-intelligence-card.tsx
@@ -363,19 +363,14 @@ export function AppleIntelligenceCard() {
size="sm"
onClick={triggerScan}
disabled={isScanning}
- className="text-xs min-w-[100px]"
+ className="text-xs min-w-[110px] inline-flex items-center justify-center gap-1.5"
>
{isScanning ? (
- <>
- <Loader2 className="h-3 w-3 mr-1.5 animate-spin" />
- Scanning…
- </>
+ <Loader2 className="h-3 w-3 shrink-0 animate-spin" />
) : (
- <>
- <CheckCircle2 className="h-3 w-3 mr-1.5" />
- Scan now
- </>
+ <CheckCircle2 className="h-3 w-3 shrink-0" />
)}
+ <span>{isScanning ? "scanning…" : "scan now"}</span>
</Button>
<Button