From 4d752219387e06f1f52f0e7337f8baff9a4d3e30 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Tue, 9 Dec 2025 12:41:54 +0200 Subject: [PATCH] chore(breadcrumbs): address requested changes --- apps/client/src/widgets/Breadcrumb.tsx | 16 ++++++---------- .../src/widgets/containers/content_header.ts | 3 +-- 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/apps/client/src/widgets/Breadcrumb.tsx b/apps/client/src/widgets/Breadcrumb.tsx index 5af9caabe..c3ec93504 100644 --- a/apps/client/src/widgets/Breadcrumb.tsx +++ b/apps/client/src/widgets/Breadcrumb.tsx @@ -38,7 +38,7 @@ export default function Breadcrumb() { {notePath.slice(-FINAL_ITEMS).map((item, index) => ( - + ))} @@ -47,7 +47,7 @@ export default function Breadcrumb() { {index === 0 ? - : + : } {(index < notePath.length - 1 || note?.hasChildren()) && } @@ -76,14 +76,11 @@ function BreadcrumbRoot({ noteContext }: { noteContext: NoteContext | undefined ); } -function BreadcrumbItem({ notePath, activeNotePath }: { notePath: string, activeNotePath: string }) { - const isRootNote = (notePath === "root"); +function BreadcrumbItem({ notePath }: { notePath: string }) { return ( ); } @@ -104,14 +101,13 @@ function BreadcrumbSeparator({ notePath, noteContext, activeNotePath }: { notePa function BreadcrumbSeparatorDropdownContent({ notePath, noteContext, activeNotePath }: { notePath: string, activeNotePath: string, noteContext: NoteContext | undefined }) { const notePathComponents = notePath.split("/"); - const notePathPrefix = notePathComponents.join("/"); const parentNoteId = notePathComponents.at(-1); const childNotes = useChildNotes(parentNoteId); return ( -