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
feat(breadcrumb): hide note paths if only one
Elian Doran860a90333639
diff --git a/apps/client/src/widgets/layout/StatusBar.tsx b/apps/client/src/widgets/layout/StatusBar.tsxindex 432462b293..1582fa67d4 100644--- a/apps/client/src/widgets/layout/StatusBar.tsx+++ b/apps/client/src/widgets/layout/StatusBar.tsx@@ -332,13 +332,14 @@ function AttributesPane({ note, noteContext, attributesShown, setAttributesShown//#region Note pathsfunction NotePaths({ note, hoistedNoteId, notePath }: StatusBarContext) {const sortedNotePaths = useSortedNotePaths(note, hoistedNoteId);+ const count = sortedNotePaths?.length ?? 0;- return (+ return (count > 1 &&<StatusBarDropdowntitle={t("status_bar.note_paths_title")}dropdownContainerClassName="dropdown-note-paths"icon="bx bx-directions"- text={t("status_bar.note_paths", { count: sortedNotePaths?.length })}+ text={t("status_bar.note_paths", { count })}><NotePathsWidgetsortedNotePaths={sortedNotePaths}