Skip to content

Build your personal knowledge base with Trilium Notes

add tooltip to fancytree node icon, #1120

zadame1c257377830
diff --git a/src/public/app/widgets/note_tree.js b/src/public/app/widgets/note_tree.js
index 15e1b09467..8923990587 100644
--- a/src/public/app/widgets/note_tree.js
+++ b/src/public/app/widgets/note_tree.js
@@ -553,6 +553,8 @@ export default class NoteTreeWidget extends TabAwareWidget {
key: utils.randomString(12) // this should prevent some "duplicate key" errors
};
+ node.iconTooltip = node.title;
+
if (node.folder && node.expanded) {
node.children = await this.prepareChildren(note);
}
@@ -839,6 +841,7 @@ export default class NoteTreeWidget extends TabAwareWidget {
node.icon = this.getIcon(note, isFolder);
node.extraClasses = this.getExtraClasses(note);
node.title = (branch.prefix ? (branch.prefix + " - ") : "") + note.title;
+ node.iconTooltip = node.title;
if (node.isExpanded() !== branch.isExpanded) {
node.setExpanded(branch.isExpanded, {noEvents: true});