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

ui: show pipe enable toggle only on hover (always visible when disabled)

Louis Beaumont7e73e78f1fcf
diff --git a/apps/screenpipe-app-tauri/components/settings/pipes-section.tsx b/apps/screenpipe-app-tauri/components/settings/pipes-section.tsx
index 1b9a7b781..855975aaa 100644
--- a/apps/screenpipe-app-tauri/components/settings/pipes-section.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/pipes-section.tsx
@@ -1418,13 +1418,18 @@ export function PipesSection() {
</DropdownMenu>
</div>
- {/* Toggle — always visible */}
- <Switch
- checked={pipe.config.enabled}
- onCheckedChange={(checked) =>
- togglePipe(pipe.config.name, checked)
- }
- />
+ {/* Toggle — visible on hover or when disabled */}
+ <div className={cn(
+ "transition-opacity",
+ pipe.config.enabled ? "opacity-0 group-hover:opacity-100" : "opacity-100"
+ )}>
+ <Switch
+ checked={pipe.config.enabled}
+ onCheckedChange={(checked) =>
+ togglePipe(pipe.config.name, checked)
+ }
+ />
+ </div>
</div>
{/* Error line (inline, below row) */}