mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
support combination of shared and cloned in the note tree, fixes #4097
This commit is contained in:
parent
d6a4f1db13
commit
04c306b360
@ -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)
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user