Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
fix(desktop): align navigation and tab toolbar content (#9127)
Jiayuan Zhang8db6cfe19ae6
diff --git a/apps/desktop/src/main/index.ts b/apps/desktop/src/main/index.tsindex a2f7bbc7b9..7a1c13372d 100644--- a/apps/desktop/src/main/index.ts+++ b/apps/desktop/src/main/index.ts@@ -312,7 +312,8 @@ function createWindow(): BrowserWindow {minWidth: 900,minHeight: 600,titleBarStyle: "hiddenInset",- trafficLightPosition: { x: 16, y: 17 },+ // Center the native controls in the main window's 40px tab toolbar.+ trafficLightPosition: { x: 16, y: 13 },show: false,autoHideMenuBar: true,// Windows/Linux pick up the window/taskbar icon from this option.diff --git a/apps/desktop/src/renderer/src/components/desktop-layout.tsx b/apps/desktop/src/renderer/src/components/desktop-layout.tsxindex 70ec88f547..abf73ff7f4 100644--- a/apps/desktop/src/renderer/src/components/desktop-layout.tsx+++ b/apps/desktop/src/renderer/src/components/desktop-layout.tsx@@ -37,7 +37,7 @@ import { TabContent } from "./tab-content";import { WindowOverlay } from "./window-overlay";import { WindowToolbar, WINDOW_TOOLBAR_CLEARANCE } from "./window-toolbar";-const TOP_BAR_HEIGHT_CLASS = "h-12";+const TOP_BAR_HEIGHT_CLASS = "h-10";const toolbarMotion = {type: "spring",stiffness: 420,diff --git a/apps/desktop/src/renderer/src/components/tab-bar.tsx b/apps/desktop/src/renderer/src/components/tab-bar.tsxindex e366fc231a..8cd04478d2 100644--- a/apps/desktop/src/renderer/src/components/tab-bar.tsx+++ b/apps/desktop/src/renderer/src/components/tab-bar.tsx@@ -307,7 +307,10 @@ function SortableTabItem({title={tab.pinned ? `${title} (pinned)` : undefined}style={{ WebkitAppRegion: "no-drag" } as React.CSSProperties}className={cn(- "group relative flex size-full min-w-0 items-center gap-1.5 px-2.5 text-caption transition-colors",+ // The 36px frame contains a centered 32px content row and a 4px+ // bottom connector. Keep the connector clickable without letting it+ // shift the icon, title, or hover actions below the toolbar center.+ "group relative flex size-full min-w-0 items-center gap-1.5 px-2.5 pb-1 text-caption transition-colors","select-none cursor-default",isActive? "font-medium text-foreground"@@ -392,7 +395,7 @@ function SortableTabItem({) : (<spanaria-hidden- className="pointer-events-none absolute inset-x-0.5 top-1 bottom-1 rounded-lg bg-sidebar-accent opacity-0 transition-opacity group-hover/tab:opacity-100"+ className="pointer-events-none absolute inset-x-0.5 top-0 bottom-1 rounded-lg bg-sidebar-accent opacity-0 transition-opacity group-hover/tab:opacity-100"/>)}{showSeparator && (@@ -401,7 +404,7 @@ function SortableTabItem({// arrives rather than lingering 2px off its rounded edge.<spanaria-hidden- className="pointer-events-none absolute left-0 top-1/2 h-4 w-px -translate-y-1/2 bg-surface-border transition-opacity group-hover/tab:opacity-0 prev-tab-hover:opacity-0"+ className="pointer-events-none absolute left-0 top-2 h-4 w-px bg-surface-border transition-opacity group-hover/tab:opacity-0 prev-tab-hover:opacity-0"/>)}<ContextMenu>@@ -451,7 +454,7 @@ function SortableTabItem({{showAddedHighlight && (<motion.spanaria-hidden- className="pointer-events-none absolute inset-x-0.5 top-1 bottom-1 rounded-lg bg-primary/10 ring-1 ring-inset ring-primary/20"+ className="pointer-events-none absolute inset-x-0.5 top-0 bottom-1 rounded-lg bg-primary/10 ring-1 ring-inset ring-primary/20"initial={{ opacity: shouldReduceMotion ? 0.25 : 0.65 }}animate={{ opacity: 0 }}transition={{ duration: shouldReduceMotion ? 0.16 : 0.42 }}@@ -497,7 +500,7 @@ function NewTabEdgeFeedback({key={`${signal.tabId}-${signal.sequence}`}aria-hiddendata-new-tab-edge-feedback="true"- className="pointer-events-none absolute top-4 bottom-1 right-0 z-20 w-8 rounded-r-lg bg-gradient-to-l from-primary/35 via-primary/10 to-transparent"+ className="pointer-events-none absolute top-1 bottom-1 right-0 z-20 w-8 rounded-r-lg bg-gradient-to-l from-primary/35 via-primary/10 to-transparent"initial={{opacity: shouldReduceMotion ? 0.45 : 0,x: shouldReduceMotion ? 0 : 4,@@ -547,7 +550,7 @@ function NewTabButton() {aria-label="New tab"title="New tab"style={{ WebkitAppRegion: "no-drag" } as React.CSSProperties}- className="mb-1 flex size-7 shrink-0 items-center justify-center self-end rounded-md text-faint-foreground transition-colors hover:bg-muted/50 hover:text-muted-foreground"+ className="flex size-7 shrink-0 items-center justify-center self-center rounded-md text-faint-foreground transition-colors hover:bg-muted/50 hover:text-muted-foreground"><Plus className="size-3.5" /></button>@@ -693,7 +696,7 @@ export function TabBar() {unpinnedCount > 0 && (<divaria-hidden- className="mx-1 mb-2.5 h-4 w-px shrink-0 self-end bg-surface-border"+ className="mx-1 mb-3 h-4 w-px shrink-0 self-end bg-surface-border"/>)}</Fragment>diff --git a/apps/desktop/src/renderer/src/components/window-toolbar.tsx b/apps/desktop/src/renderer/src/components/window-toolbar.tsxindex a6d04797e2..d08682021f 100644--- a/apps/desktop/src/renderer/src/components/window-toolbar.tsx+++ b/apps/desktop/src/renderer/src/components/window-toolbar.tsx@@ -246,7 +246,7 @@ export function WindowToolbar() {<divdata-slot="window-toolbar"data-sidebar-resize-consumer- className="fixed left-0 top-0 z-30 flex h-12 shrink-0 items-center pr-3"+ className="fixed left-0 top-0 z-30 flex h-10 shrink-0 items-center pr-3"style={{WebkitAppRegion: "drag",