From 7b14db1d85b7cbc87a69f5ec03bf455bd29a7b28 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Thu, 25 Jun 2026 09:19:35 -0700 Subject: [PATCH 1/2] Restore right panel inset when maximized - Apply the collapsed sidebar titlebar inset in maximized desktop mode - Keep the right panel tab bar aligned with native window controls --- apps/web/src/components/RightPanelTabs.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/web/src/components/RightPanelTabs.tsx b/apps/web/src/components/RightPanelTabs.tsx index ead306f7c90..cfad7cdf86d 100644 --- a/apps/web/src/components/RightPanelTabs.tsx +++ b/apps/web/src/components/RightPanelTabs.tsx @@ -20,6 +20,7 @@ import { Menu, MenuItem, MenuPopup, MenuTrigger } from "~/components/ui/menu"; import { ScrollArea } from "~/components/ui/scroll-area"; import { faviconUrlForOrigin } from "~/lib/favicon"; import { useTheme } from "~/hooks/useTheme"; +import { COLLAPSED_SIDEBAR_TITLEBAR_INSET_CLASS } from "~/workspaceTitlebar"; import { PreviewPanelShell, type PreviewPanelMode } from "./preview/PreviewPanelShell"; import { PierreEntryIcon } from "./chat/PierreEntryIcon"; @@ -346,6 +347,7 @@ export function RightPanelTabs(props: RightPanelTabsProps) { "workspace-topbar gap-1 pl-2", props.mode === "inline" ? "pr-28" : "pr-3", ownsDesktopTitleBar && "wco:pr-[calc(var(--workspace-native-controls-inset)+6rem)]", + ownsDesktopTitleBar && props.maximized && COLLAPSED_SIDEBAR_TITLEBAR_INSET_CLASS, )} data-right-panel-tabbar > From 2c76fccac45e12596eb87323ee994d56dc384192 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Thu, 25 Jun 2026 10:03:48 -0700 Subject: [PATCH 2/2] Scope right panel inset to inline maximized mode - Avoid applying the collapsed sidebar titlebar inset in non-inline layouts - Preserve desktop titlebar spacing while keeping inline maximized tabs aligned --- apps/web/src/components/RightPanelTabs.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/components/RightPanelTabs.tsx b/apps/web/src/components/RightPanelTabs.tsx index cfad7cdf86d..cf0263f81bd 100644 --- a/apps/web/src/components/RightPanelTabs.tsx +++ b/apps/web/src/components/RightPanelTabs.tsx @@ -347,7 +347,7 @@ export function RightPanelTabs(props: RightPanelTabsProps) { "workspace-topbar gap-1 pl-2", props.mode === "inline" ? "pr-28" : "pr-3", ownsDesktopTitleBar && "wco:pr-[calc(var(--workspace-native-controls-inset)+6rem)]", - ownsDesktopTitleBar && props.maximized && COLLAPSED_SIDEBAR_TITLEBAR_INSET_CLASS, + props.mode === "inline" && props.maximized && COLLAPSED_SIDEBAR_TITLEBAR_INSET_CLASS, )} data-right-panel-tabbar >