support combination of shared and cloned in the note tree, fixes #4097

This commit is contained in:
zadam 2023-07-17 22:26:41 +02:00
parent d6a4f1db13
commit 04c306b360
2 changed files with 11 additions and 2 deletions

View File

@ -742,7 +742,8 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
if (note.isShared()) {
extraClasses.push("shared");
}
else if (note.getParentNoteIds().length > 1) {
if (note.getParentNoteIds().length > 1) {
const realClones = note.getParentNoteIds()
.map(noteId => froca.notes[noteId])
.filter(note => !!note)

View File

@ -132,8 +132,16 @@ span.fancytree-node.protected > span.fancytree-custom-icon {
filter: drop-shadow(2px 2px 2px var(--main-text-color));
}
span.fancytree-node.multiple-parents.shared .fancytree-title::after {
font-family: 'boxicons' !important;
font-size: smaller;
content: " \ec27 \ec03";
}
span.fancytree-node.multiple-parents .fancytree-title::after {
content: " *";
font-family: 'boxicons' !important;
font-size: smaller;
content: " \ec27"; /* lookup code for "star" in boxicons.css */
}
span.fancytree-node.shared .fancytree-title::after {