mirror of
https://github.com/zadam/trilium.git
synced 2025-10-06 13:39:51 +08:00
feat(text_snippets): support color class as well
This commit is contained in:
parent
d2761abd04
commit
3f5239706f
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ function buildIcon(snippet: FNote) {
|
|||
return /*xml*/`\
|
||||
<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
||||
<foreignObject x="0" y="0" width="20" height="20">
|
||||
<span class="note-icon ${snippet.getIcon()}" xmlns="http://www.w3.org/1999/xhtml"></span>
|
||||
<span class="note-icon ${snippet.getIcon()} ${snippet.getColorClass()}" xmlns="http://www.w3.org/1999/xhtml"></span>
|
||||
</foreignObject>
|
||||
</svg>`
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue