Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
unhoist button on the left
zadam75639c53f0a7
diff --git a/src/public/app/widgets/note_tree.js b/src/public/app/widgets/note_tree.jsindex 3b3333b951..aba4b7daba 100644--- a/src/public/app/widgets/note_tree.js+++ b/src/public/app/widgets/note_tree.js@@ -550,7 +550,9 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {if (isHoistedNote) {const $unhoistButton = $('<span class="tree-item-button unhoist-button bx bx-door-open" title="Unhoist"></span>');- $span.append($unhoistButton);+ // unhoist button is prepended since compared to other buttons this is not just convenience+ // on the mobile interface - it's the only way to unhoist+ $span.prepend($unhoistButton);}if (note.hasLabel('workspace') && !isHoistedNote) {diff --git a/src/public/stylesheets/tree.css b/src/public/stylesheets/tree.cssindex ddf9fc81bc..dd70c50d88 100644--- a/src/public/stylesheets/tree.css+++ b/src/public/stylesheets/tree.css@@ -211,6 +211,10 @@ span.fancytree-node.archived {border-radius: 5px;}+.unhoist-button.bx.tree-item-button {+ margin-left: 0; /* unhoist button is on the left and doesn't need more margin */+}+.tree-item-button:hover {border: 1px dotted var(--main-text-color);}