mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 13:26:01 +01:00
trim content for grid view
This commit is contained in:
@@ -300,7 +300,9 @@ class NoteListRenderer {
|
||||
const $content = $('<div class="note-book-content">');
|
||||
|
||||
try {
|
||||
const {renderedContent, type} = await noteContentRenderer.getRenderedContent(note);
|
||||
const {renderedContent, type} = await noteContentRenderer.getRenderedContent(note, {
|
||||
trim: this.viewType === 'grid' // for grid only short content is needed
|
||||
});
|
||||
|
||||
$content.append(renderedContent);
|
||||
$content.addClass("type-" + type);
|
||||
|
||||
Reference in New Issue
Block a user