mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 21:11:30 +08:00 
			
		
		
		
	fix(note_tooltip): redundant padding on empty note with no children
This commit is contained in:
		
							parent
							
								
									9d097a0ee7
								
							
						
					
					
						commit
						f77a29d7fe
					
				| @ -238,12 +238,16 @@ async function renderMermaid(note: FNote, $renderedContent: JQuery<HTMLElement>) | ||||
|  * @param {FNote} note | ||||
|  * @returns {Promise<void>} | ||||
|  */ | ||||
| async function renderChildrenList($renderedContent: JQuery<HTMLElement>, note: FNote) { | ||||
| async function renderChildrenList($renderedContent: JQuery<HTMLElement>, note: FNote) {     | ||||
|     let childNoteIds = note.getChildNoteIds(); | ||||
| 
 | ||||
|     if (!childNoteIds.length) { | ||||
|         return; | ||||
|     } | ||||
| 
 | ||||
|     $renderedContent.css("padding", "10px"); | ||||
|     $renderedContent.addClass("text-with-ellipsis"); | ||||
| 
 | ||||
|     let childNoteIds = note.getChildNoteIds(); | ||||
| 
 | ||||
|     if (childNoteIds.length > 10) { | ||||
|         childNoteIds = childNoteIds.slice(0, 10); | ||||
|     } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran