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
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix: pipe store cards - show full title, consistent layout
Louis Beaumontece065e73c0a
diff --git a/apps/screenpipe-app-tauri/components/pipe-store.tsx b/apps/screenpipe-app-tauri/components/pipe-store.tsxindex 7ef79b9af..3c0523bc2 100644--- a/apps/screenpipe-app-tauri/components/pipe-store.tsx+++ b/apps/screenpipe-app-tauri/components/pipe-store.tsx@@ -751,23 +751,11 @@ function FeaturedCard({className="flex-shrink-0 w-[300px] snap-start group cursor-pointer"onClick={onClick}>- <div className="border border-border bg-card hover:bg-accent/50 transition-colors duration-150 rounded-none p-5 space-y-3 h-full">- <div className="flex items-start justify-between">- <div className="flex items-start gap-3">- <div className="text-3xl bg-muted rounded-none h-12 w-12 flex items-center justify-center flex-shrink-0">- {pipe.icon || "π§"}- </div>- <div className="min-w-0">- <div className="flex items-center gap-1.5">- <span className="text-sm font-semibold truncate">{pipe.title}</span>- </div>- <div className="flex items-center gap-1 text-xs text-muted-foreground mt-0.5">- <span className="truncate">{pipe.author}</span>- {pipe.author_verified && (- <BadgeCheck className="h-3 w-3 text-foreground flex-shrink-0" />- )}- </div>- </div>+ <div className="border border-border bg-card hover:bg-accent/50 transition-colors duration-150 rounded-none p-5 h-full flex flex-col">+ {/* Header: icon + action */}+ <div className="flex items-start justify-between gap-3">+ <div className="text-3xl bg-muted rounded-none h-12 w-12 flex items-center justify-center flex-shrink-0">+ {pipe.icon || "π§"}</div><Buttonsize="sm"@@ -795,20 +783,27 @@ function FeaturedCard({</Button></div>- <p className="text-xs text-muted-foreground line-clamp-2 leading-relaxed">+ {/* Title β full width, no truncation */}+ <h4 className="text-sm font-semibold mt-3 line-clamp-2 leading-snug">{pipe.title}</h4>+ <div className="flex items-center gap-1 text-xs text-muted-foreground mt-1">+ <span className="truncate">{pipe.author}</span>+ {pipe.author_verified && (+ <BadgeCheck className="h-3 w-3 text-foreground flex-shrink-0" />+ )}+ </div>++ <p className="text-xs text-muted-foreground line-clamp-2 mt-2 leading-relaxed flex-1">{pipe.description}</p>- <div className="flex items-center justify-between">+ <div className="flex items-center justify-between mt-3 pt-3 border-t border-border"><Badge variant="secondary" className="text-[10px] px-2 py-0.5 font-normal rounded-none">{pipe.category}</Badge>- <div className="flex items-center gap-3 text-xs text-muted-foreground">- <span className="flex items-center gap-1">- <Download className="h-3 w-3" />- {formatCount(pipe.install_count ?? 0)}- </span>- </div>+ <span className="flex items-center gap-1 text-xs text-muted-foreground">+ <Download className="h-3 w-3" />+ {formatCount(pipe.install_count ?? 0)}+ </span></div></div></div>@@ -838,77 +833,59 @@ function PipeCard({return (<divonClick={onClick}- className="border border-border bg-card hover:bg-accent/50 transition-colors duration-150 rounded-none p-5 cursor-pointer group"+ className="border border-border bg-card hover:bg-accent/50 transition-colors duration-150 rounded-none p-5 cursor-pointer group flex flex-col">- <div className="flex items-start gap-3">+ {/* Header: icon + action */}+ <div className="flex items-start justify-between gap-3"><div className="text-2xl bg-muted rounded-none h-11 w-11 flex items-center justify-center flex-shrink-0">{pipe.icon || "π§"}</div>- <div className="min-w-0 flex-1">- <div className="flex items-start justify-between gap-2">- <div className="min-w-0">- <div className="text-sm font-semibold truncate">{pipe.title}</div>- <div className="flex items-center gap-1 text-xs text-muted-foreground mt-0.5">- <span className="truncate">{pipe.author}</span>- {pipe.author_verified && (- <BadgeCheck className="h-3 w-3 text-foreground flex-shrink-0" />- )}- </div>- </div>- <Button- size="sm"- variant={isInstalled && !hasUpdate ? "outline" : "default"}- className={cn(- "h-7 px-3 text-xs font-semibold rounded-none uppercase tracking-wide flex-shrink-0",- isInstalled && !hasUpdate && "pointer-events-none",- hasUpdate && "bg-amber-500 hover:bg-amber-600 text-white"- )}- disabled={installing || (isInstalled && !hasUpdate)}- onClick={(e) => {- e.stopPropagation();- onInstall();- }}- >- {installing ? (- <Loader2 className="h-3 w-3 animate-spin" />- ) : hasUpdate ? (- "UPDATE"- ) : isInstalled ? (- "INSTALLED"- ) : (- "GET"- )}- </Button>- </div>- </div>+ <Button+ size="sm"+ variant={isInstalled && !hasUpdate ? "outline" : "default"}+ className={cn(+ "h-7 px-3 text-xs font-semibold rounded-none uppercase tracking-wide flex-shrink-0",+ isInstalled && !hasUpdate && "pointer-events-none",+ hasUpdate && "bg-amber-500 hover:bg-amber-600 text-white"+ )}+ disabled={installing || (isInstalled && !hasUpdate)}+ onClick={(e) => {+ e.stopPropagation();+ onInstall();+ }}+ >+ {installing ? (+ <Loader2 className="h-3 w-3 animate-spin" />+ ) : hasUpdate ? (+ "UPDATE"+ ) : isInstalled ? (+ "INSTALLED"+ ) : (+ "GET"+ )}+ </Button></div>- <p className="text-xs text-muted-foreground line-clamp-2 mt-3 leading-relaxed">+ {/* Title β full width, no truncation */}+ <h4 className="text-sm font-semibold mt-3 line-clamp-2 leading-snug">{pipe.title}</h4>+ <div className="flex items-center gap-1 text-xs text-muted-foreground mt-1">+ <span className="truncate">{pipe.author}</span>+ {pipe.author_verified && (+ <BadgeCheck className="h-3 w-3 text-foreground flex-shrink-0" />+ )}+ </div>++ {/* Description */}+ <p className="text-xs text-muted-foreground line-clamp-2 mt-2 leading-relaxed flex-1">{pipe.description}</p>- {permissionPills.length > 0 && (- <div className="flex flex-wrap gap-1 mt-2.5">- {permissionPills.slice(0, 3).map((p) => (- <Badge- key={p.key}- variant="outline"- className="text-[10px] px-1.5 py-0 gap-0.5 font-normal rounded-none"- >- {p.icon}- {p.label}- </Badge>- ))}- {permissionPills.length > 3 && (- <Badge variant="outline" className="text-[10px] px-1.5 py-0 font-normal rounded-none">- +{permissionPills.length - 3}- </Badge>- )}- </div>- )}-- <div className="flex items-center gap-3 mt-3 text-xs text-muted-foreground">- <span className="flex items-center gap-1">+ {/* Footer: category + stats */}+ <div className="flex items-center justify-between mt-3 pt-3 border-t border-border">+ <Badge variant="secondary" className="text-[10px] px-2 py-0.5 font-normal rounded-none">+ {pipe.category}+ </Badge>+ <span className="flex items-center gap-1 text-xs text-muted-foreground"><Download className="h-3 w-3" />{formatCount(pipe.install_count ?? 0)}</span>