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

Show search icon only (no shortcut) in embedded timeline

Louis Beaumontdd5a8cf0dfd5
diff --git a/apps/screenpipe-app-tauri/components/rewind/timeline.tsx b/apps/screenpipe-app-tauri/components/rewind/timeline.tsx
index 82e8575a8..797874891 100644
--- a/apps/screenpipe-app-tauri/components/rewind/timeline.tsx
+++ b/apps/screenpipe-app-tauri/components/rewind/timeline.tsx
@@ -1379,6 +1379,7 @@ export default function Timeline({ embedded = false }: { embedded?: boolean }) {
onJumpToday={handleJumpToday}
onSearchClick={() => setShowSearchModal(true)}
onChatClick={embedded ? undefined : () => commands.showWindow("Chat")}
+ embedded={embedded}
/>
{/* Top right buttons */}
<div className="absolute top-[calc(env(safe-area-inset-top)+16px)] right-4 flex items-center gap-2">
diff --git a/apps/screenpipe-app-tauri/components/rewind/timeline/timeline-controls.tsx b/apps/screenpipe-app-tauri/components/rewind/timeline/timeline-controls.tsx
index dfebd0e79..9fd407475 100644
--- a/apps/screenpipe-app-tauri/components/rewind/timeline/timeline-controls.tsx
+++ b/apps/screenpipe-app-tauri/components/rewind/timeline/timeline-controls.tsx
@@ -237,14 +237,26 @@ export function TimelineControls({
</div>
{onSearchClick && (
- <button
- type="button"
- onClick={onSearchClick}
- className="flex items-center h-10 gap-1.5 bg-background border border-border px-4 font-mono hover:bg-foreground hover:text-background transition-colors duration-150 cursor-pointer group"
- >
- <span className="text-xs text-muted-foreground group-hover:text-background">{searchShortcutDisplay}</span>
- <span className="text-xs text-foreground group-hover:text-background">search</span>
- </button>
+ embedded ? (
+ <Button
+ variant="ghost"
+ size="icon"
+ onClick={onSearchClick}
+ className="h-10 w-10 bg-background border border-border text-foreground hover:bg-foreground hover:text-background transition-colors duration-150"
+ title="Search"
+ >
+ <Search className="h-4 w-4" />
+ </Button>
+ ) : (
+ <button
+ type="button"
+ onClick={onSearchClick}
+ className="flex items-center h-10 gap-1.5 bg-background border border-border px-4 font-mono hover:bg-foreground hover:text-background transition-colors duration-150 cursor-pointer group"
+ >
+ <span className="text-xs text-muted-foreground group-hover:text-background">{searchShortcutDisplay}</span>
+ <span className="text-xs text-foreground group-hover:text-background">search</span>
+ </button>
+ )
)}
{onChatClick && (