mirror of
https://github.com/zadam/trilium.git
synced 2025-11-11 07:45:51 +01:00
fix(client): experiment with full-width tab bar
This commit is contained in:
@@ -94,10 +94,16 @@ export default class DesktopLayout {
|
|||||||
|
|
||||||
const launcherPaneIsHorizontal = true;
|
const launcherPaneIsHorizontal = true;
|
||||||
const launcherPane = this.#buildLauncherPane(launcherPaneIsHorizontal);
|
const launcherPane = this.#buildLauncherPane(launcherPaneIsHorizontal);
|
||||||
|
const fullWidthTabBar = launcherPaneIsHorizontal && true;
|
||||||
|
const tabBar = new TabRowWidget();
|
||||||
|
|
||||||
return new RootContainer()
|
return new RootContainer()
|
||||||
.setParent(appContext)
|
.setParent(appContext)
|
||||||
.optChild(launcherPaneIsHorizontal, launcherPane)
|
.optChild(launcherPaneIsHorizontal, launcherPane)
|
||||||
|
.optChild(fullWidthTabBar, new FlexContainer('row')
|
||||||
|
.child(tabBar)
|
||||||
|
.css('height', '40px')
|
||||||
|
)
|
||||||
.child(new FlexContainer('row')
|
.child(new FlexContainer('row')
|
||||||
.css("flex-grow", "1")
|
.css("flex-grow", "1")
|
||||||
.optChild(!launcherPaneIsHorizontal, launcherPane)
|
.optChild(!launcherPaneIsHorizontal, launcherPane)
|
||||||
@@ -109,8 +115,8 @@ export default class DesktopLayout {
|
|||||||
.child(new FlexContainer('column')
|
.child(new FlexContainer('column')
|
||||||
.id('rest-pane')
|
.id('rest-pane')
|
||||||
.css("flex-grow", "1")
|
.css("flex-grow", "1")
|
||||||
.child(new FlexContainer('row')
|
.optChild(!fullWidthTabBar, new FlexContainer('row')
|
||||||
.child(new TabRowWidget())
|
.child(tabBar)
|
||||||
.child(new TitleBarButtonsWidget())
|
.child(new TitleBarButtonsWidget())
|
||||||
.css('height', '40px')
|
.css('height', '40px')
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user