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(layout/inline-title): text displayed even when note is not empty
Elian Doran56570d7ba157
diff --git a/apps/client/src/widgets/layout/InlineTitle.tsx b/apps/client/src/widgets/layout/InlineTitle.tsxindex ed5d9359a1..5738ffe8d3 100644--- a/apps/client/src/widgets/layout/InlineTitle.tsx+++ b/apps/client/src/widgets/layout/InlineTitle.tsx@@ -161,9 +161,9 @@ function NoteTypeSwitcher() {className="note-type-switcher"onWheel={onWheelHorizontalScroll}>- <div className="intro">{t("note_title.note_type_switcher_label", { type: currentNoteTypeData?.title.toLocaleLowerCase() })}</div>{blob?.contentLength === 0 && (<>+ <div className="intro">{t("note_title.note_type_switcher_label", { type: currentNoteTypeData?.title.toLocaleLowerCase() })}</div>{pinnedNoteTypes.map(noteType => noteType.type !== currentNoteType && (<Badgekey={noteType.type}