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
fix(mobile): note title not working
Elian Doran9750e25ad5b4
diff --git a/apps/client/src/layouts/mobile_layout.ts b/apps/client/src/layouts/mobile_layout.tsxsimilarity index 96%rename from apps/client/src/layouts/mobile_layout.tsrename to apps/client/src/layouts/mobile_layout.tsxindex f21fcd3a3c..77038a2dc5 100644--- a/apps/client/src/layouts/mobile_layout.ts+++ b/apps/client/src/layouts/mobile_layout.tsx@@ -143,7 +143,7 @@ export default class MobileLayout {.css("font-size", "larger").css("align-items", "center").child(new ToggleSidebarButtonWidget().contentSized())- .child(NoteTitleWidget().contentSized().css("position", "relative").css("padding-left", "0.5em"))+ .child(<NoteTitleWidget />).child(new MobileDetailMenuWidget(true).contentSized())).child(new SharedInfoWidget())@@ -163,7 +163,7 @@ export default class MobileLayout {.contentSized().child(new NoteDetailWidget()).child(new NoteListWidget(false))- .child(new FilePropertiesWidget().css("font-size", "smaller"))+ //.child(new FilePropertiesWidget().css("font-size", "smaller"))).child(new MobileEditorToolbar()))diff --git a/apps/client/src/widgets/react/hooks.tsx b/apps/client/src/widgets/react/hooks.tsxindex eeb13f7fca..c968e7498b 100644--- a/apps/client/src/widgets/react/hooks.tsx+++ b/apps/client/src/widgets/react/hooks.tsx@@ -209,7 +209,8 @@ export function useNoteContext() {useTriliumEvent("noteSwitchedAndActivated", ({ noteContext }) => {setNoteContext(noteContext);});- useTriliumEvent("noteSwitched", ({ notePath }) => {+ useTriliumEvent("noteSwitched", ({ notePath, noteContext }) => {+ setNoteContext(noteContext);setNotePath(notePath);});useTriliumEvent("frocaReloaded", () => {