Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(layout): move the note title into the scrollable region
Elian Dorane2b6d0c256cd
diff --git a/apps/client/src/layouts/desktop_layout.tsx b/apps/client/src/layouts/desktop_layout.tsxindex 4c642495a5..ce6acd39fe 100644--- a/apps/client/src/layouts/desktop_layout.tsx+++ b/apps/client/src/layouts/desktop_layout.tsx@@ -75,6 +75,11 @@ export default class DesktopLayout {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")@@ -142,17 +147,14 @@ export default class DesktopLayout {.child(<CreatePaneButton />).optChild(isNewLayout, <NoteActions />))- .child(new FlexContainer("row")- .class("title-row")- .child(<NoteIconWidget />)- .child(<NoteTitleWidget />)- )+ .optChild(!isNewLayout, titleRow).optChild(!isNewLayout, <Ribbon><NoteActions /></Ribbon>).child(new WatchedFileUpdateStatusWidget()).child(<FloatingButtons items={DESKTOP_FLOATING_BUTTONS} />).child(new ScrollingContainer().filling()+ .optChild(isNewLayout, titleRow).child(new ContentHeader().child(<ReadOnlyNoteInfoBar />).child(<SharedInfo />)