mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 11:02:28 +08:00
fix(client): experiment with full-width tab bar
This commit is contained in:
parent
c858630678
commit
d1550db08d
@ -94,10 +94,16 @@ 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')
|
||||
.child(tabBar)
|
||||
.css('height', '40px')
|
||||
)
|
||||
.child(new FlexContainer('row')
|
||||
.css("flex-grow", "1")
|
||||
.optChild(!launcherPaneIsHorizontal, launcherPane)
|
||||
@ -109,8 +115,8 @@ export default class DesktopLayout {
|
||||
.child(new FlexContainer('column')
|
||||
.id('rest-pane')
|
||||
.css("flex-grow", "1")
|
||||
.child(new FlexContainer('row')
|
||||
.child(new TabRowWidget())
|
||||
.optChild(!fullWidthTabBar, new FlexContainer('row')
|
||||
.child(tabBar)
|
||||
.child(new TitleBarButtonsWidget())
|
||||
.css('height', '40px')
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user