mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 15:11:31 +08:00 
			
		
		
		
	notes with multiple parents are now marked with dashed underline
This commit is contained in:
		
							parent
							
								
									163a03663f
								
							
						
					
					
						commit
						84a9e9067d
					
				@ -106,8 +106,20 @@ const noteTree = (function() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
            note.title = note.note_title;
 | 
					            note.title = note.note_title;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            note.extraClasses = "";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if (note.is_protected) {
 | 
					            if (note.is_protected) {
 | 
				
			||||||
                note.extraClasses = "protected";
 | 
					                note.extraClasses += ",protected";
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            if (childToParents[childNoteId].length > 1) {
 | 
				
			||||||
 | 
					                console.log("Multiple classes!");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                note.extraClasses += ",multiple-parents";
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            if (note.extraClasses.startsWith(",")) {
 | 
				
			||||||
 | 
					                note.extraClasses = note.extraClasses.substr(1);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            note.key = counter++ + ""; // key needs to be string
 | 
					            note.key = counter++ + ""; // key needs to be string
 | 
				
			||||||
 | 
				
			|||||||
@ -73,6 +73,10 @@ span.fancytree-node.protected.fancytree-folder > span.fancytree-icon {
 | 
				
			|||||||
    background-image: url("../images/icons/folder-shaded.png");
 | 
					    background-image: url("../images/icons/folder-shaded.png");
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					span.fancytree-node.multiple-parents .fancytree-title {
 | 
				
			||||||
 | 
					    text-decoration: underline dashed;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.ui-autocomplete {
 | 
					.ui-autocomplete {
 | 
				
			||||||
    max-height: 300px;
 | 
					    max-height: 300px;
 | 
				
			||||||
    overflow-y: auto;
 | 
					    overflow-y: auto;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user