From 6b059a9a75d5401dacc56388ea38a19dd29e33e3 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Tue, 9 Dec 2025 08:01:52 +0200 Subject: [PATCH] feat(ribbon): context menu for root item --- apps/client/src/widgets/Breadcrumb.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/client/src/widgets/Breadcrumb.tsx b/apps/client/src/widgets/Breadcrumb.tsx index 24d2ba9d4..5af9caabe 100644 --- a/apps/client/src/widgets/Breadcrumb.tsx +++ b/apps/client/src/widgets/Breadcrumb.tsx @@ -11,6 +11,7 @@ import { FormListItem } from "./react/FormList"; import { useChildNotes, useNoteContext, useNoteLabel, useNoteProperty } from "./react/hooks"; import Icon from "./react/Icon"; import NoteLink from "./react/NoteLink"; +import link_context_menu from "../menus/link_context_menu"; const COLLAPSE_THRESHOLD = 5; const INITIAL_ITEMS = 2; @@ -67,6 +68,10 @@ function BreadcrumbRoot({ noteContext }: { noteContext: NoteContext | undefined icon={note.getIcon()} text={title ?? ""} onClick={() => noteContext?.setNote("root")} + onContextMenu={(e) => { + e.preventDefault(); + link_context_menu.openContextMenu(note.noteId, e); + }} /> ); }