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(breadcrumb): archived not respected by last item
Elian Doran66ed88c40931
diff --git a/apps/client/src/widgets/layout/Breadcrumb.tsx b/apps/client/src/widgets/layout/Breadcrumb.tsxindex 6454aea197..c4e51b5122 100644--- a/apps/client/src/widgets/layout/Breadcrumb.tsx+++ b/apps/client/src/widgets/layout/Breadcrumb.tsx@@ -130,6 +130,7 @@ function BreadcrumbLastItem({ notePath, parentComponent }: { notePath: string, pconst [ note ] = useState(() => froca.getNoteFromCache(noteId!));const title = useNoteProperty(note, "title");const colorClass = useNoteColorClass(note);+ const [ archived ] = useNoteLabelBoolean(note, "archived");useStaticTooltip(linkRef, {placement: "top",title: t("breadcrumb.scroll_to_top_title")@@ -141,7 +142,7 @@ function BreadcrumbLastItem({ notePath, parentComponent }: { notePath: string, p<aref={linkRef}href="#"- className={clsx("breadcrumb-last-item tn-link", colorClass)}+ className={clsx("breadcrumb-last-item tn-link", colorClass, archived && "archived")}onClick={() => {const activeNtxId = appContext.tabManager.activeNtxId;const scrollingContainer = document.querySelector(`[data-ntx-id="${activeNtxId}"] .scrolling-container`);