mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 13:39:01 +01:00 
			
		
		
		
	fix(collections/list): excessive spacing in empty note content (closes #7319)
This commit is contained in:
		
							parent
							
								
									f5038a08e5
								
							
						
					
					
						commit
						347da8abde
					
				@ -141,7 +141,11 @@ function NoteContent({ note, trim, noChildrenList, highlightedTokens }: { note:
 | 
			
		||||
        })
 | 
			
		||||
            .then(({ $renderedContent, type }) => {
 | 
			
		||||
                if (!contentRef.current) return;
 | 
			
		||||
                contentRef.current.replaceChildren(...$renderedContent);
 | 
			
		||||
                if ($renderedContent[0].innerHTML) {
 | 
			
		||||
                    contentRef.current.replaceChildren(...$renderedContent);
 | 
			
		||||
                } else {
 | 
			
		||||
                    contentRef.current.replaceChildren();
 | 
			
		||||
                }
 | 
			
		||||
                contentRef.current.classList.add(`type-${type}`);
 | 
			
		||||
                highlightSearch(contentRef.current);
 | 
			
		||||
            })
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user