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

compact sidebar settings and help

Louis Beaumont376fdbf8fb26
diff --git a/apps/screenpipe-app-tauri/app/(main)/home/page.tsx b/apps/screenpipe-app-tauri/app/(main)/home/page.tsx
index c322bbb2c..995b7e88a 100644
--- a/apps/screenpipe-app-tauri/app/(main)/home/page.tsx
+++ b/apps/screenpipe-app-tauri/app/(main)/home/page.tsx
@@ -1192,66 +1192,61 @@ function HomeContent() {
<div id="announcement-sidebar-slot" />
{/* Bottom items */}
- <div className={cn("space-y-0.5 border-t pt-2", isTranslucent ? "vibrant-sidebar-border" : "border-border")}>
+ <div className={cn("flex items-center gap-1 border-t pt-2", isTranslucent ? "vibrant-sidebar-border" : "border-border")}>
{/* Settings — always visible; individual sections are enterprise-filtered inside /settings */}
- {(() => {
- const btn = (
- <button
- data-testid="nav-settings"
- data-announcement-anchor="sidebar-settings"
- onClick={() => openSettings("general")}
- className={cn(
- "w-full flex items-center space-x-2.5 px-2.5 py-1.5 rounded-lg transition-all duration-150 text-left group",
- isTranslucent
- ? "vibrant-nav-item vibrant-nav-hover"
- : "hover:bg-card/50 text-muted-foreground hover:text-foreground",
- )}
- >
- <div className={cn(
- "transition-colors flex-shrink-0",
- isTranslucent ? "" : "text-muted-foreground group-hover:text-foreground"
- )}>
- <SettingsIcon className="h-3.5 w-3.5" />
- </div>
- <span className="font-medium text-xs truncate">Settings</span>
- </button>
- );
- return btn;
- })()}
+ <button
+ data-testid="nav-settings"
+ data-announcement-anchor="sidebar-settings"
+ onClick={() => openSettings("general")}
+ className={cn(
+ "flex min-w-0 flex-1 items-center space-x-2.5 rounded-lg px-2.5 py-1.5 text-left transition-all duration-150 group",
+ isTranslucent
+ ? "vibrant-nav-item vibrant-nav-hover"
+ : "text-muted-foreground hover:bg-card/50 hover:text-foreground",
+ )}
+ >
+ <div className={cn(
+ "flex-shrink-0 transition-colors",
+ isTranslucent ? "" : "text-muted-foreground group-hover:text-foreground"
+ )}>
+ <SettingsIcon className="h-3.5 w-3.5" />
+ </div>
+ <span className="truncate text-xs font-medium">Settings</span>
+ </button>
- {/* Help */}
+ {/* Help stays discoverable without taking a second row. */}
{!isSectionHidden("help") && (() => {
const isActive = activeSection === "help";
- const btn = (
- <button
- data-testid="nav-help"
- data-announcement-anchor="sidebar-help"
- onClick={() => {
- setActiveSection("help");
- }}
- className={cn(
- "w-full flex items-center space-x-2.5 px-2.5 py-1.5 rounded-lg transition-all duration-150 text-left group",
- isActive
- ? isTranslucent
- ? "vibrant-nav-active"
- : "bg-card shadow-sm border border-border text-foreground"
- : isTranslucent
- ? "vibrant-nav-item vibrant-nav-hover"
- : "hover:bg-card/50 text-muted-foreground hover:text-foreground",
- )}
- >
- <div className={cn(
- "transition-colors flex-shrink-0",
- isActive
- ? isTranslucent ? "" : "text-primary"
- : isTranslucent ? "" : "text-muted-foreground group-hover:text-foreground"
- )}>
- <HelpCircle className="h-3.5 w-3.5" />
- </div>
- <span className="font-medium text-xs truncate">Help</span>
- </button>
+ return (
+ <Tooltip>
+ <TooltipTrigger asChild>
+ <button
+ type="button"
+ data-testid="nav-help"
+ data-announcement-anchor="sidebar-help"
+ aria-label="Help"
+ onClick={() => {
+ setActiveSection("help");
+ }}
+ className={cn(
+ "flex h-8 w-8 shrink-0 items-center justify-center rounded-lg transition-all duration-150",
+ isActive
+ ? isTranslucent
+ ? "vibrant-nav-active"
+ : "border border-border bg-card text-primary shadow-sm"
+ : isTranslucent
+ ? "vibrant-nav-item vibrant-nav-hover"
+ : "text-muted-foreground hover:bg-card/50 hover:text-foreground",
+ )}
+ >
+ <HelpCircle className="h-4 w-4" />
+ </button>
+ </TooltipTrigger>
+ <TooltipContent side="top" className="text-xs">
+ Help
+ </TooltipContent>
+ </Tooltip>
);
- return btn;
})()}
</div>
</div>