trim content for grid view

This commit is contained in:
zadam
2020-10-25 11:00:27 +01:00
parent 4202af96c8
commit 37e111d8a9
2 changed files with 19 additions and 4 deletions

View File

@@ -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);