From a45c1a1dc8e8ef48830582f4b25d27058b62067e Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Tue, 9 Dec 2025 22:57:36 +0200 Subject: [PATCH] chore(layout): fix regressions after merge --- apps/client/src/layouts/desktop_layout.tsx | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/apps/client/src/layouts/desktop_layout.tsx b/apps/client/src/layouts/desktop_layout.tsx index 27fb0f7ed..9112ccbb5 100644 --- a/apps/client/src/layouts/desktop_layout.tsx +++ b/apps/client/src/layouts/desktop_layout.tsx @@ -79,6 +79,11 @@ export default class DesktopLayout { const customTitleBarButtons = !hasNativeTitleBar && !isMac && !isWindows; const isNewLayout = isExperimentalFeatureEnabled("new-layout"); + const titleRow = new FlexContainer("row") + .class("title-row") + .child() + .child(); + const rootContainer = new RootContainer(true) .setParent(appContext) .class((launcherPaneIsHorizontal ? "horizontal" : "vertical") + "-layout") @@ -143,18 +148,17 @@ export default class DesktopLayout { .child() .optChild(isNewLayout, ) ) - .child(new FlexContainer("row") - .class("title-row") - .child() - .child() - ) - .child() + .optChild(!isNewLayout, titleRow) + .optChild(!isNewLayout, ) + .optChild(isNewLayout, ) .child(new WatchedFileUpdateStatusWidget()) .child() .child( new ScrollingContainer() .filling() - .child(new ContentHeader() + .optChild(isNewLayout, titleRow) + .optChild(isNewLayout, ) + .optChild(!isNewLayout, new ContentHeader() .child() .child() )