fix(mobile): note title not working

This commit is contained in:
Elian Doran
2025-08-26 22:21:42 +03:00
parent 2f9b2f0e8f
commit 9750e25ad5
2 changed files with 4 additions and 3 deletions

View File

@@ -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())
)

View File

@@ -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", () => {