From b06b3541951bc3db31aae495b3747f7cd664cb90 Mon Sep 17 00:00:00 2001 From: Sanchit Rk <0xsanchit@gmail.com> Date: Sat, 14 Nov 2026 00:04:46 +0530 Subject: [PATCH] fix(desktop): space the title bar controls from the workspace tabs With the sidebar closed, the title bar's controls were pinned to a width that left no room after Forward on macOS, so the first workspace tab sat against it. They now size to their content plus padding, still animating with the sidebar, and the new-workspace button keeps the tab gap. Co-Authored-By: Claude Opus 5.5 --- apps/web/src/shell/titlebar.tsx | 6 +++--- apps/web/src/style.css | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/apps/web/src/shell/titlebar.tsx b/apps/web/src/shell/titlebar.tsx index d91523bf..033e0b42 100644 --- a/apps/web/src/shell/titlebar.tsx +++ b/apps/web/src/shell/titlebar.tsx @@ -36,8 +36,8 @@ export function NavigationControls() {
void add()} - className={chromeButton} + className={`${chromeButton} ml-1`} > diff --git a/apps/web/src/style.css b/apps/web/src/style.css index 33465387..ba222661 100644 --- a/apps/web/src/style.css +++ b/apps/web/src/style.css @@ -269,6 +269,10 @@ .app-shell :is([data-slot="sidebar-gap"], [data-slot="sidebar-navigation"]) { transition: width 200ms var(--ease-drawer); } +/* Closed, the title bar's controls are as wide as their content; this lets that width animate too. */ +.app-shell [data-slot="sidebar-navigation"] { + interpolate-size: allow-keywords; +} .app-shell[data-resizing] :is([data-slot="sidebar-gap"], [data-slot="sidebar-navigation"]) { transition: none; }