Skip to content

Build your personal knowledge base with Trilium Notes

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.tsx
index 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 && (
<Badge
key={noteType.type}