Skip to content

Build your personal knowledge base with Trilium Notes

fix hidden notes appearing after creation in a new document

zadam8769fd71cbf0
diff --git a/src/public/app/widgets/note_tree.js b/src/public/app/widgets/note_tree.js
index 2411a0bf8c..08e80d9169 100644
--- a/src/public/app/widgets/note_tree.js
+++ b/src/public/app/widgets/note_tree.js
@@ -1027,7 +1027,7 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
}
}
- if (!ecBranch.isDeleted) {
+ if (!ecBranch.isDeleted && ecBranch.noteId !== 'hidden') {
for (const parentNode of this.getNodesByNoteId(ecBranch.parentNoteId)) {
if (parentNode.isFolder() && !parentNode.isLoaded()) {
continue;
@@ -1040,7 +1040,7 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
await froca.getNote(ecBranch.noteId);
const frocaBranch = froca.getBranch(ecBranch.branchId);
- // we're forcing lazy since it's not clear if the whole required subtree is in froca
+ // we're forcing lazy since it's not clear if the whole required subtree is in froca
parentNode.addChildren([this.prepareNode(frocaBranch, true)]);
this.sortChildren(parentNode);
diff --git a/src/public/stylesheets/tree.css b/src/public/stylesheets/tree.css
index a8beb93028..4ce2dd1919 100644
--- a/src/public/stylesheets/tree.css
+++ b/src/public/stylesheets/tree.css
@@ -13,6 +13,8 @@ span.fancytree-node.fancytree-hide {
.fancytree-title {
margin-left: 7px;
outline: none;
+ position: relative;
+ top: 2px;
}
.fancytree-expander {