From 1e5fcf635e2eb2a8148f7945c1472319a2ed246e Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Mon, 8 Dec 2025 22:05:09 +0200 Subject: [PATCH] feat(breadcrumb): show root title if it's the one active --- apps/client/src/widgets/Breadcrumb.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/client/src/widgets/Breadcrumb.tsx b/apps/client/src/widgets/Breadcrumb.tsx index a624e2e58..e24704e0a 100644 --- a/apps/client/src/widgets/Breadcrumb.tsx +++ b/apps/client/src/widgets/Breadcrumb.tsx @@ -15,7 +15,7 @@ export default function Breadcrumb() {
{notePath.map((item, index) => ( - + {(index < notePath.length - 1 || note?.hasChildren()) && } @@ -24,13 +24,13 @@ export default function Breadcrumb() { ) } -function BreadcrumbItem({ notePath }: { notePath: string }) { +function BreadcrumbItem({ notePath, activeNotePath }: { notePath: string, activeNotePath: string }) { const isRootNote = (notePath === "root"); return ( )