mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-30 18:05:55 +01:00 
			
		
		
		
	small improvements to text preview in file notes
This commit is contained in:
		| @@ -17,8 +17,9 @@ async function getNote(req) { | ||||
|     if (note.isStringNote()) { | ||||
|         note.content = await note.getContent(); | ||||
|  | ||||
|         if (note.type === 'file') { | ||||
|             note.content = note.content.substr(0, 10000); | ||||
|         if (note.type === 'file' && note.content.length > 10000) { | ||||
|             note.content = note.content.substr(0, 10000) | ||||
|                 + `\r\n\r\n... and ${note.content.length - 10000} more characters.`; | ||||
|         } | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user