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(macos): add left padding to header to avoid traffic light overlap

Louis Beaumont9c60b0e58b0c
diff --git a/screenpipe-app-tauri/components/global-chat.tsx b/screenpipe-app-tauri/components/global-chat.tsx
index 551ddfe1e..8ffc33d92 100644
--- a/screenpipe-app-tauri/components/global-chat.tsx
+++ b/screenpipe-app-tauri/components/global-chat.tsx
@@ -1440,9 +1440,16 @@ export function GlobalChat() {
customClose={<X className="w-4 h-4" />}
>
{/* Header - sleek geometric style */}
- <div className="relative flex items-center gap-3 px-4 py-3 pr-12 border-b border-border/50 bg-gradient-to-r from-background to-muted/30">
+ {/* Add left padding on macOS to avoid traffic light overlap */}
+ <div className={cn(
+ "relative flex items-center gap-3 px-4 py-3 pr-12 border-b border-border/50 bg-gradient-to-r from-background to-muted/30",
+ isMac && "pl-[72px]"
+ )}>
{/* Geometric corner accent */}
- <div className="absolute top-0 left-0 w-8 h-8 border-l-2 border-t-2 border-foreground/10 rounded-tl-lg" />
+ <div className={cn(
+ "absolute top-0 left-0 w-8 h-8 border-l-2 border-t-2 border-foreground/10 rounded-tl-lg",
+ isMac && "left-[60px]"
+ )} />
<div className="relative z-10 p-1.5 rounded-lg bg-foreground/5 border border-border/50">
<PipeAIIcon size={18} animated={false} className="text-foreground" />
diff --git a/screenpipe-app-tauri/components/standalone-chat.tsx b/screenpipe-app-tauri/components/standalone-chat.tsx
index 081706b19..b0cf57220 100644
--- a/screenpipe-app-tauri/components/standalone-chat.tsx
+++ b/screenpipe-app-tauri/components/standalone-chat.tsx
@@ -721,8 +721,12 @@ export function StandaloneChat() {
return (
<div className="flex flex-col h-screen bg-background">
{/* Header - draggable */}
+ {/* Add left padding on macOS to avoid traffic light overlap */}
<div
- className="relative flex items-center gap-3 px-4 py-3 border-b border-border/50 bg-gradient-to-r from-background to-muted/30 cursor-grab active:cursor-grabbing"
+ className={cn(
+ "relative flex items-center gap-3 px-4 py-3 border-b border-border/50 bg-gradient-to-r from-background to-muted/30 cursor-grab active:cursor-grabbing",
+ isMac && "pl-[72px]"
+ )}
onMouseDown={async (e) => {
if (e.button === 0) {
try {
@@ -733,7 +737,10 @@ export function StandaloneChat() {
}
}}
>
- <div className="absolute top-0 left-0 w-8 h-8 border-l-2 border-t-2 border-foreground/10 rounded-tl-lg" />
+ <div className={cn(
+ "absolute top-0 left-0 w-8 h-8 border-l-2 border-t-2 border-foreground/10 rounded-tl-lg",
+ isMac && "left-[60px]"
+ )} />
<div className="relative z-10 p-1.5 rounded-lg bg-foreground/5 border border-border/50">
<PipeAIIcon size={18} animated={false} className="text-foreground" />
</div>