mirror of
https://github.com/zadam/trilium.git
synced 2025-12-18 13:24:25 +01:00
fix(layout/inline-title): text displayed even when note is not empty
This commit is contained in:
parent
0ffdedcfa6
commit
56570d7ba1
@ -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}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user