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(app): sidebar content overlapping icon strip in macOS fullscreen (#4036)

Harsh Kumar1aff28773576
diff --git a/apps/screenpipe-app-tauri/app/home/page.tsx b/apps/screenpipe-app-tauri/app/home/page.tsx
index 8184fd1b2..44479fbb9 100644
--- a/apps/screenpipe-app-tauri/app/home/page.tsx
+++ b/apps/screenpipe-app-tauri/app/home/page.tsx
@@ -919,7 +919,7 @@ function HomeContent() {
// top-0.5 + items-center puts each icon's center at y≈15px,
// matching the vertical center of the macOS traffic lights
// (which sit at y≈14).
- "fixed top-0.5 z-20 flex items-center gap-1.5",
+ "fixed top-1 z-20 flex items-center gap-1.5",
reserveTrafficLights ? "left-[78px]" : "left-2"
)}
>
@@ -986,13 +986,13 @@ function HomeContent() {
strip above (toggle + status dot) is the entire collapsed
chrome, Claude-style. */}
{!sidebarCollapsed && (
- <AppSidebar className="pl-4">
+ <AppSidebar className="pl-1">
{/* Navigation.
Outer flex column has no overflow — the chat-list section
inside owns its own scroll, otherwise the team promo +
bottom items would be pushed below the fold by long
conversation lists. */}
- <div className="p-2 flex-1 flex flex-col min-h-0">
+ <div className="pt-2 pr-2 pb-2 flex-1 flex flex-col min-h-0">
{/* Main sections */}
<div className="space-y-0.5 shrink-0">
{mainSections.map((section) => {
@@ -1194,7 +1194,7 @@ function HomeContent() {
activeSection !== "home" && "hidden"
)}
>
- <StandaloneChat className="h-full" hideInlineHistory />
+ <StandaloneChat className="h-full" hideInlineHistory sidebarCollapsed={sidebarCollapsed} />
</div>
{/* Non-chat sections render on top when active. */}
diff --git a/apps/screenpipe-app-tauri/components/app-sidebar.tsx b/apps/screenpipe-app-tauri/components/app-sidebar.tsx
index 56a4b9b0e..dc70a70ee 100644
--- a/apps/screenpipe-app-tauri/components/app-sidebar.tsx
+++ b/apps/screenpipe-app-tauri/components/app-sidebar.tsx
@@ -95,7 +95,7 @@ export function AppSidebar({ children, className }: AppSidebarProps) {
// Animate width only when not actively dragging — otherwise the
// 300ms transition fights the pointer.
isResizing ? "" : "transition-[width] duration-300",
- fullscreen ? "pt-2" : "pt-8",
+ fullscreen ? "pt-7" : "pt-8",
isTranslucent ? "vibrant-sidebar" : "bg-background",
isTranslucent ? "vibrant-sidebar-border" : "border-border",
className,
diff --git a/apps/screenpipe-app-tauri/components/standalone-chat.tsx b/apps/screenpipe-app-tauri/components/standalone-chat.tsx
index 44e6c8afa..9c3ae5007 100644
--- a/apps/screenpipe-app-tauri/components/standalone-chat.tsx
+++ b/apps/screenpipe-app-tauri/components/standalone-chat.tsx
@@ -2500,6 +2500,7 @@ function ChatTitleMenu({
export function StandaloneChat({
className,
hideInlineHistory,
+ sidebarCollapsed,
}: {
className?: string;
/** When true, the in-panel History button + slide-in panel are hidden.
@@ -2508,6 +2509,9 @@ export function StandaloneChat({
* chat at `/chat` leaves it false so users still have a history
* affordance in the floating window — that window has no AppSidebar. */
hideInlineHistory?: boolean;
+ /** When true, the app sidebar is collapsed — used to apply traffic-light
+ * padding on the chat header since the sidebar no longer covers them. */
+ sidebarCollapsed?: boolean;
} = {}) {
const { settings, updateSettings, isSettingsLoaded, reloadStore } = useSettings();
const { isMac, isWindows, isLoading: isPlatformLoading } = usePlatform();
@@ -8260,9 +8264,11 @@ export function StandaloneChat({
{/* Add left padding on macOS to avoid traffic light overlap (standalone only) */}
<div
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",
+ "relative flex items-center gap-3 px-4 py-3.5 border-b border-border/50 bg-gradient-to-r from-background to-muted/30",
!className && "cursor-grab active:cursor-grabbing",
- isMac && !className && !isFullscreen && "pl-[72px]"
+ conversationId && messages.length > 0 && "py-0.5",
+ sidebarCollapsed && conversationId && messages.length > 0 && "!pl-[58px]",
+ sidebarCollapsed && isMac && !isFullscreen && "!pl-[128px]"
)}
onMouseDown={async (e) => {
if (className) return; // embedded — don't drag