feat(text_snippets): support color class as well

This commit is contained in:
Elian Doran 2025-08-29 23:41:46 +03:00
parent d2761abd04
commit 3f5239706f
No known key found for this signature in database

View file

@ -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>`
} }