Skip to content

Build your personal knowledge base with Trilium Notes

Merge remote-tracking branch 'origin/main' into feature/new_layout

Elian Doranf8377169e677
diff --cc apps/client/src/layouts/desktop_layout.tsx
index 9112ccbb5b,d1f35ec62b..27fb0f7edf
--- a/apps/client/src/layouts/desktop_layout.tsx
+++ b/apps/client/src/layouts/desktop_layout.tsx
@@@ -77,13 -71,7 +77,8 @@@ export default class DesktopLayout
*/
const fullWidthTabBar = launcherPaneIsHorizontal || (isElectron && !hasNativeTitleBar && isMac);
const customTitleBarButtons = !hasNativeTitleBar && !isMac && !isWindows;
+ const isNewLayout = isExperimentalFeatureEnabled("new-layout");
- const titleRow = new FlexContainer("row")
- .class("title-row")
- .child(<NoteIconWidget />)
- .child(<NoteTitleWidget />);
-
const rootContainer = new RootContainer(true)
.setParent(appContext)
.class((launcherPaneIsHorizontal ? "horizontal" : "vertical") + "-layout")
@@@ -146,11 -137,13 +141,14 @@@
.child(<MovePaneButton direction="right" />)
.child(<ClosePaneButton />)
.child(<CreatePaneButton />)
+ .optChild(isNewLayout, <NoteActions />)
)
- .optChild(!isNewLayout, titleRow)
- .optChild(!isNewLayout, <Ribbon><NoteActions /></Ribbon>)
- .optChild(isNewLayout, <StandaloneRibbonAdapter component={FormattingToolbar} />)
+ .child(new FlexContainer("row")
+ .class("title-row")
+ .child(<NoteIconWidget />)
+ .child(<NoteTitleWidget />)
+ )
+ .child(<Ribbon />)
.child(new WatchedFileUpdateStatusWidget())
.child(<FloatingButtons items={DESKTOP_FLOATING_BUTTONS} />)
.child(