mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-18 17:31:53 +08:00
feat(native-buttons): apply full width regardless
This commit is contained in:
parent
14fb8b5dd9
commit
8d2a8ead04
@ -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')
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user