mirror of
https://github.com/zadam/trilium.git
synced 2025-11-09 14:55:50 +01:00
feat(footnotes): clicking a footnote from the bottom list navigates to ref
This commit is contained in:
@@ -46,6 +46,11 @@ async function mouseEnterHandler(this: HTMLElement) {
|
||||
const url = $link.attr("href") || $link.attr("data-href");
|
||||
const { notePath, noteId, viewScope } = linkService.parseNavigationStateFromUrl(url);
|
||||
|
||||
if (url?.startsWith("#fnref")) {
|
||||
// The "^" symbol from footnotes within text notes, doesn't require a tooltip.
|
||||
return;
|
||||
}
|
||||
|
||||
if (!notePath || !noteId || viewScope?.viewMode !== 'default') {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user