mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 03:46:37 +01:00 
			
		
		
		
	fix(collections/list): excessive spacing in empty note content (closes #7319)
This commit is contained in:
		@@ -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);
 | 
			
		||||
            })
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user