From 91c4ea333eebf9684067e9df248d89eb1231c630 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Fri, 22 Nov 2024 21:37:54 +0200 Subject: [PATCH] feat(client): move tab bar on horizontal layout --- src/public/app/layouts/desktop_layout.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/public/app/layouts/desktop_layout.js b/src/public/app/layouts/desktop_layout.js index a06c89a63..4fbbe43c5 100644 --- a/src/public/app/layouts/desktop_layout.js +++ b/src/public/app/layouts/desktop_layout.js @@ -94,16 +94,15 @@ export default class DesktopLayout { const launcherPaneIsHorizontal = true; const launcherPane = this.#buildLauncherPane(launcherPaneIsHorizontal); - const fullWidthTabBar = launcherPaneIsHorizontal && true; const tabBar = new TabRowWidget(); return new RootContainer() .setParent(appContext) - .optChild(launcherPaneIsHorizontal, launcherPane) - .optChild(fullWidthTabBar, new FlexContainer('row') + .optChild(launcherPaneIsHorizontal, new FlexContainer('row') .child(tabBar) .css('height', '40px') ) + .optChild(launcherPaneIsHorizontal, launcherPane) .child(new FlexContainer('row') .css("flex-grow", "1") .optChild(!launcherPaneIsHorizontal, launcherPane) @@ -115,7 +114,7 @@ export default class DesktopLayout { .child(new FlexContainer('column') .id('rest-pane') .css("flex-grow", "1") - .optChild(!fullWidthTabBar, new FlexContainer('row') + .optChild(!launcherPaneIsHorizontal, new FlexContainer('row') .child(tabBar) .child(new TitleBarButtonsWidget()) .css('height', '40px')