mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
display note icon in note list
This commit is contained in:
parent
8644c38abc
commit
f1f4f45c9d
@ -74,6 +74,15 @@ const TPL = `
|
|||||||
content: "\\00a0\\00a0";
|
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 {
|
.note-book-card .note-book-card {
|
||||||
border: 1px solid var(--main-border-color);
|
border: 1px solid var(--main-border-color);
|
||||||
}
|
}
|
||||||
@ -110,7 +119,6 @@ const TPL = `
|
|||||||
font-size: x-large;
|
font-size: x-large;
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 3px;
|
top: 3px;
|
||||||
padding-right: 3px;
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -308,6 +316,7 @@ class NoteListRenderer {
|
|||||||
.append(
|
.append(
|
||||||
$('<h5 class="note-book-title">')
|
$('<h5 class="note-book-title">')
|
||||||
.append($expander)
|
.append($expander)
|
||||||
|
.append($('<span class="note-icon">').addClass(note.getIcon()))
|
||||||
.append(await linkService.createNoteLink(note.noteId, {showTooltip: false, showNotePath: this.showNotePath}))
|
.append(await linkService.createNoteLink(note.noteId, {showTooltip: false, showNotePath: this.showNotePath}))
|
||||||
.append($renderedAttributes)
|
.append($renderedAttributes)
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user