feat(native-buttons): apply full width regardless

This commit is contained in:
Elian Doran 2024-12-04 23:16:03 +02:00
parent 14fb8b5dd9
commit 8d2a8ead04
No known key found for this signature in database

View File

@ -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')
)