From bedca9f82c929759a937f86b601f027cdd842378 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Mon, 8 Dec 2025 16:45:26 +0200 Subject: [PATCH] feat(breadcrumb): hide root icon --- apps/client/src/services/link.ts | 2 +- apps/client/src/widgets/Breadcrumb.tsx | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/client/src/services/link.ts b/apps/client/src/services/link.ts index a596e7136..79bc18c2a 100644 --- a/apps/client/src/services/link.ts +++ b/apps/client/src/services/link.ts @@ -99,7 +99,7 @@ async function createLink(notePath: string | undefined, options: CreateLinkOptio const viewMode = viewScope.viewMode || "default"; let linkTitle = options.title; - if (!linkTitle) { + if (linkTitle === undefined) { if (viewMode === "attachments" && viewScope.attachmentId) { const attachment = await froca.getAttachment(viewScope.attachmentId); diff --git a/apps/client/src/widgets/Breadcrumb.tsx b/apps/client/src/widgets/Breadcrumb.tsx index 945f55e64..18ec9e845 100644 --- a/apps/client/src/widgets/Breadcrumb.tsx +++ b/apps/client/src/widgets/Breadcrumb.tsx @@ -24,10 +24,13 @@ export default function Breadcrumb() { } function BreadcrumbItem({ notePath }: { notePath: string }) { + const isRootNote = (notePath === "root"); return ( ) }