mirror of
https://github.com/zadam/trilium.git
synced 2025-12-12 18:34:24 +01:00
Merge remote-tracking branch 'origin/main' into feature/new_layout
This commit is contained in:
commit
f8377169e6
@ -79,11 +79,6 @@ export default class DesktopLayout {
|
|||||||
const customTitleBarButtons = !hasNativeTitleBar && !isMac && !isWindows;
|
const customTitleBarButtons = !hasNativeTitleBar && !isMac && !isWindows;
|
||||||
const isNewLayout = isExperimentalFeatureEnabled("new-layout");
|
const isNewLayout = isExperimentalFeatureEnabled("new-layout");
|
||||||
|
|
||||||
const titleRow = new FlexContainer("row")
|
|
||||||
.class("title-row")
|
|
||||||
.child(<NoteIconWidget />)
|
|
||||||
.child(<NoteTitleWidget />);
|
|
||||||
|
|
||||||
const rootContainer = new RootContainer(true)
|
const rootContainer = new RootContainer(true)
|
||||||
.setParent(appContext)
|
.setParent(appContext)
|
||||||
.class((launcherPaneIsHorizontal ? "horizontal" : "vertical") + "-layout")
|
.class((launcherPaneIsHorizontal ? "horizontal" : "vertical") + "-layout")
|
||||||
@ -148,17 +143,18 @@ export default class DesktopLayout {
|
|||||||
.child(<CreatePaneButton />)
|
.child(<CreatePaneButton />)
|
||||||
.optChild(isNewLayout, <NoteActions />)
|
.optChild(isNewLayout, <NoteActions />)
|
||||||
)
|
)
|
||||||
.optChild(!isNewLayout, titleRow)
|
.child(new FlexContainer("row")
|
||||||
.optChild(!isNewLayout, <Ribbon><NoteActions /></Ribbon>)
|
.class("title-row")
|
||||||
.optChild(isNewLayout, <StandaloneRibbonAdapter component={FormattingToolbar} />)
|
.child(<NoteIconWidget />)
|
||||||
|
.child(<NoteTitleWidget />)
|
||||||
|
)
|
||||||
|
.child(<Ribbon />)
|
||||||
.child(new WatchedFileUpdateStatusWidget())
|
.child(new WatchedFileUpdateStatusWidget())
|
||||||
.child(<FloatingButtons items={DESKTOP_FLOATING_BUTTONS} />)
|
.child(<FloatingButtons items={DESKTOP_FLOATING_BUTTONS} />)
|
||||||
.child(
|
.child(
|
||||||
new ScrollingContainer()
|
new ScrollingContainer()
|
||||||
.filling()
|
.filling()
|
||||||
.optChild(isNewLayout, titleRow)
|
.child(new ContentHeader()
|
||||||
.optChild(isNewLayout, <NoteTitleDetails />)
|
|
||||||
.optChild(!isNewLayout, new ContentHeader()
|
|
||||||
.child(<ReadOnlyNoteInfoBar />)
|
.child(<ReadOnlyNoteInfoBar />)
|
||||||
.child(<SharedInfo />)
|
.child(<SharedInfo />)
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user