Skip to content

Build your personal knowledge base with Trilium Notes

changed symbol for shared notes

zadam94111c464bde
diff --git a/src/public/app/entities/note_short.js b/src/public/app/entities/note_short.js
index 749d8986dd..b2a0eebccc 100644
--- a/src/public/app/entities/note_short.js
+++ b/src/public/app/entities/note_short.js
@@ -398,6 +398,9 @@ class NoteShort {
else if (this.noteId === 'root') {
return "bx bx-chevrons-right";
}
+ if (this.noteId === 'share') {
+ return "bx bx-share-alt";
+ }
else if (this.type === 'text') {
if (this.isFolder()) {
return "bx bx-folder";
diff --git a/src/public/app/widgets/note_tree.js b/src/public/app/widgets/note_tree.js
index 859d2d9877..84d811bb71 100644
--- a/src/public/app/widgets/note_tree.js
+++ b/src/public/app/widgets/note_tree.js
@@ -1017,8 +1017,14 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
}
for (const ecBranch of loadResults.getBranches()) {
- // adding noteId itself to update all potential clones
- noteIdsToUpdate.add(ecBranch.noteId);
+ if (ecBranch.parentNoteId === 'share') {
+ // all shared notes have a sign in the tree, even the descendants of shared notes
+ noteIdsToReload.add(ecBranch.noteId);
+ }
+ else {
+ // adding noteId itself to update all potential clones
+ noteIdsToUpdate.add(ecBranch.noteId);
+ }
for (const node of this.getNodesByBranch(ecBranch)) {
if (ecBranch.isDeleted) {
diff --git a/src/public/stylesheets/tree.css b/src/public/stylesheets/tree.css
index ac1fae7667..5c502943c8 100644
--- a/src/public/stylesheets/tree.css
+++ b/src/public/stylesheets/tree.css
@@ -139,7 +139,9 @@ span.fancytree-node.multiple-parents .fancytree-title::after {
}
span.fancytree-node.shared .fancytree-title::after {
- content: " \2197";
+ font-family: 'boxicons' !important;
+ font-size: smaller;
+ content: " \ec03"; /* lookup code for "share-alt" in boxicons.css */
}
span.fancytree-node.fancytree-active-clone:not(.fancytree-active) .fancytree-title {