From 5bb4621097db1e49d61f3e4930861b442cee9974 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 10 Dec 2025 17:42:01 +0200 Subject: [PATCH] chore(layout): address requested changes --- apps/client/src/widgets/Breadcrumb.tsx | 5 ++++- apps/client/src/widgets/FloatingButtonsDefinitions.tsx | 2 +- apps/client/src/widgets/collections/board/index.tsx | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/client/src/widgets/Breadcrumb.tsx b/apps/client/src/widgets/Breadcrumb.tsx index 1ac3ecb51..83ff966b8 100644 --- a/apps/client/src/widgets/Breadcrumb.tsx +++ b/apps/client/src/widgets/Breadcrumb.tsx @@ -96,7 +96,10 @@ function BreadcrumbLastItem({ notePath }: { notePath: string }) { setIsEditing(true)} + onClick={(e) => { + e.preventDefault(); + setIsEditing(true); + }} >{title} ); } diff --git a/apps/client/src/widgets/FloatingButtonsDefinitions.tsx b/apps/client/src/widgets/FloatingButtonsDefinitions.tsx index b6ee70229..1c7a904a9 100644 --- a/apps/client/src/widgets/FloatingButtonsDefinitions.tsx +++ b/apps/client/src/widgets/FloatingButtonsDefinitions.tsx @@ -356,7 +356,7 @@ export function useBacklinkCount(note: FNote | null | undefined, isDefaultViewMo }); }, [ isDefaultViewMode, note ]); - useEffect(() => refresh(), [ note, isDefaultViewMode, refresh ]); + useEffect(() => refresh(), [ refresh ]); useTriliumEvent("entitiesReloaded", ({ loadResults }) => { if (note && needsRefresh(note, loadResults)) refresh(); }); diff --git a/apps/client/src/widgets/collections/board/index.tsx b/apps/client/src/widgets/collections/board/index.tsx index a50213a31..39e715f97 100644 --- a/apps/client/src/widgets/collections/board/index.tsx +++ b/apps/client/src/widgets/collections/board/index.tsx @@ -243,7 +243,7 @@ function AddNewColumn({ api, isInRelationMode }: { api: BoardApi, isInRelationMo export function TitleEditor({ currentValue, placeholder, save, dismiss, mode, isNewItem }: { currentValue?: string; placeholder?: string; - save: (newValue: string) => void; + save: (newValue: string) => void | Promise; dismiss: () => void; isNewItem?: boolean; mode?: "normal" | "multiline" | "relation";