diff --git a/package-lock.json b/package-lock.json index 74aabd229..6055a636e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "trilium", - "version": "0.60.0-beta", + "version": "0.60.1-beta", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "trilium", - "version": "0.60.0-beta", + "version": "0.60.1-beta", "hasInstallScript": true, "license": "AGPL-3.0-only", "dependencies": { diff --git a/src/public/app/services/note_content_renderer.js b/src/public/app/services/note_content_renderer.js index 2fb805799..6bb47d9f3 100644 --- a/src/public/app/services/note_content_renderer.js +++ b/src/public/app/services/note_content_renderer.js @@ -157,9 +157,6 @@ async function getRenderedContent(note, options = {}) { $renderedContent.append($("
").text("Error parsing content. Please check console.error() for more details.")); } } - else if (type === 'book') { - // nothing, book doesn't have its own content - } else if (!options.tooltip && type === 'protectedSession') { const $button = $(``) .on('click', protectedSessionService.enterProtectedSession); @@ -172,7 +169,12 @@ async function getRenderedContent(note, options = {}) { ); } else { - $renderedContent.append($("

Content of this note cannot be displayed in the book format

")); + $renderedContent.append( + $("
") + .css("text-align", "center") + .css("font-size", "500%") + .append($("").addClass(note.getIcon())) + ); } $renderedContent.addClass(note.getCssClass());