mirror of
https://github.com/zadam/trilium.git
synced 2025-12-13 19:04:25 +01:00
chore(layout): address requested changes
This commit is contained in:
parent
f1edf84f4d
commit
5bb4621097
@ -96,7 +96,10 @@ function BreadcrumbLastItem({ notePath }: { notePath: string }) {
|
|||||||
<a
|
<a
|
||||||
href="#"
|
href="#"
|
||||||
className="breadcrumb-last-item tn-link"
|
className="breadcrumb-last-item tn-link"
|
||||||
onClick={() => setIsEditing(true)}
|
onClick={(e) => {
|
||||||
|
e.preventDefault();
|
||||||
|
setIsEditing(true);
|
||||||
|
}}
|
||||||
>{title}</a>
|
>{title}</a>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -356,7 +356,7 @@ export function useBacklinkCount(note: FNote | null | undefined, isDefaultViewMo
|
|||||||
});
|
});
|
||||||
}, [ isDefaultViewMode, note ]);
|
}, [ isDefaultViewMode, note ]);
|
||||||
|
|
||||||
useEffect(() => refresh(), [ note, isDefaultViewMode, refresh ]);
|
useEffect(() => refresh(), [ refresh ]);
|
||||||
useTriliumEvent("entitiesReloaded", ({ loadResults }) => {
|
useTriliumEvent("entitiesReloaded", ({ loadResults }) => {
|
||||||
if (note && needsRefresh(note, loadResults)) refresh();
|
if (note && needsRefresh(note, loadResults)) refresh();
|
||||||
});
|
});
|
||||||
|
|||||||
@ -243,7 +243,7 @@ function AddNewColumn({ api, isInRelationMode }: { api: BoardApi, isInRelationMo
|
|||||||
export function TitleEditor({ currentValue, placeholder, save, dismiss, mode, isNewItem }: {
|
export function TitleEditor({ currentValue, placeholder, save, dismiss, mode, isNewItem }: {
|
||||||
currentValue?: string;
|
currentValue?: string;
|
||||||
placeholder?: string;
|
placeholder?: string;
|
||||||
save: (newValue: string) => void;
|
save: (newValue: string) => void | Promise<void>;
|
||||||
dismiss: () => void;
|
dismiss: () => void;
|
||||||
isNewItem?: boolean;
|
isNewItem?: boolean;
|
||||||
mode?: "normal" | "multiline" | "relation";
|
mode?: "normal" | "multiline" | "relation";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user