mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	note tooltip displays the whole note with scrollbar, other behavior changes. closes #4120
This commit is contained in:
		| @@ -2,9 +2,7 @@ const becca = require('../becca/becca'); | ||||
| const NotFoundError = require("../errors/not_found_error"); | ||||
| const protectedSessionService = require("./protected_session"); | ||||
|  | ||||
| function getBlobPojo(entityName, entityId, opts = {}) { | ||||
|     opts.preview = !!opts.preview; | ||||
|  | ||||
| function getBlobPojo(entityName, entityId) { | ||||
|     const entity = becca.getEntity(entityName, entityId); | ||||
|  | ||||
|     if (!entity) { | ||||
| @@ -19,10 +17,6 @@ function getBlobPojo(entityName, entityId, opts = {}) { | ||||
|         pojo.content = null; | ||||
|     } else { | ||||
|         pojo.content = processContent(pojo.content, entity.isProtected, true); | ||||
|  | ||||
|         if (opts.preview && pojo.content.length > 10000) { | ||||
|             pojo.content = `${pojo.content.substr(0, 10000)}\r\n\r\n... and ${pojo.content.length - 10000} more characters.`; | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     return pojo; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user