mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
changed symbol for shared notes
This commit is contained in:
parent
94e18dfb7c
commit
94111c464b
@ -398,6 +398,9 @@ class NoteShort {
|
|||||||
else if (this.noteId === 'root') {
|
else if (this.noteId === 'root') {
|
||||||
return "bx bx-chevrons-right";
|
return "bx bx-chevrons-right";
|
||||||
}
|
}
|
||||||
|
if (this.noteId === 'share') {
|
||||||
|
return "bx bx-share-alt";
|
||||||
|
}
|
||||||
else if (this.type === 'text') {
|
else if (this.type === 'text') {
|
||||||
if (this.isFolder()) {
|
if (this.isFolder()) {
|
||||||
return "bx bx-folder";
|
return "bx bx-folder";
|
||||||
|
@ -1017,8 +1017,14 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (const ecBranch of loadResults.getBranches()) {
|
for (const ecBranch of loadResults.getBranches()) {
|
||||||
|
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
|
// adding noteId itself to update all potential clones
|
||||||
noteIdsToUpdate.add(ecBranch.noteId);
|
noteIdsToUpdate.add(ecBranch.noteId);
|
||||||
|
}
|
||||||
|
|
||||||
for (const node of this.getNodesByBranch(ecBranch)) {
|
for (const node of this.getNodesByBranch(ecBranch)) {
|
||||||
if (ecBranch.isDeleted) {
|
if (ecBranch.isDeleted) {
|
||||||
|
@ -139,7 +139,9 @@ span.fancytree-node.multiple-parents .fancytree-title::after {
|
|||||||
}
|
}
|
||||||
|
|
||||||
span.fancytree-node.shared .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 {
|
span.fancytree-node.fancytree-active-clone:not(.fancytree-active) .fancytree-title {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user