Skip to content

Build your personal knowledge base with Trilium Notes

display note icon in note list

zadamf1f4f45c9d0b
diff --git a/src/public/app/services/note_list_renderer.js b/src/public/app/services/note_list_renderer.js
index d354eb3684..1a4ea89752 100644
--- a/src/public/app/services/note_list_renderer.js
+++ b/src/public/app/services/note_list_renderer.js
@@ -74,6 +74,15 @@ const TPL = `
content: "\\00a0\\00a0";
}
+ .note-book-title .note-icon {
+ font-size: 120%;
+ display: inline-block;
+ padding-right: 5px;
+ padding-left: 5px;
+ position: relative;
+ top: 3px;
+ }
+
.note-book-card .note-book-card {
border: 1px solid var(--main-border-color);
}
@@ -110,7 +119,6 @@ const TPL = `
font-size: x-large;
position: relative;
top: 3px;
- padding-right: 3px;
cursor: pointer;
}
@@ -308,6 +316,7 @@ class NoteListRenderer {
.append(
$('<h5 class="note-book-title">')
.append($expander)
+ .append($('<span class="note-icon">').addClass(note.getIcon()))
.append(await linkService.createNoteLink(note.noteId, {showTooltip: false, showNotePath: this.showNotePath}))
.append($renderedAttributes)
);