mirror of
https://github.com/zadam/trilium.git
synced 2025-10-06 21:47:31 +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*/`\
|
return /*xml*/`\
|
||||||
<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
||||||
<foreignObject x="0" y="0" width="20" height="20">
|
<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>
|
</foreignObject>
|
||||||
</svg>`
|
</svg>`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue