From 8d2a8ead0413aaa37d80640736b6c790a7d816e6 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 4 Dec 2024 23:16:03 +0200 Subject: [PATCH] feat(native-buttons): apply full width regardless --- src/public/app/layouts/desktop_layout.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/public/app/layouts/desktop_layout.js b/src/public/app/layouts/desktop_layout.js index eaa3ba011..d5e9f8c68 100644 --- a/src/public/app/layouts/desktop_layout.js +++ b/src/public/app/layouts/desktop_layout.js @@ -94,11 +94,12 @@ export default class DesktopLayout { const launcherPaneIsHorizontal = (options.get("layoutOrientation") === "horizontal"); const launcherPane = this.#buildLauncherPane(launcherPaneIsHorizontal); + const fullWidthTabBar = true; - return new RootContainer(launcherPaneIsHorizontal) + return new RootContainer(true) .setParent(appContext) .class((launcherPaneIsHorizontal ? "horizontal" : "vertical") + "-layout") - .optChild(launcherPaneIsHorizontal, new FlexContainer('row') + .optChild(fullWidthTabBar, new FlexContainer('row') .class("tab-row-container") .child(new LeftPaneToggleWidget(true)) .child(new TabRowWidget().class("full-width")) @@ -118,7 +119,7 @@ export default class DesktopLayout { .child(new FlexContainer('column') .id('rest-pane') .css("flex-grow", "1") - .optChild(!launcherPaneIsHorizontal, new FlexContainer('row') + .optChild(!fullWidthTabBar, new FlexContainer('row') .child(new TabRowWidget()) .css('height', '40px') )