Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(ckeditor): apply the note's colour to its icon in the snippet selector
Elian Doran30a322465ce6
diff --git a/apps/client/src/stylesheets/theme-next/notes/text.css b/apps/client/src/stylesheets/theme-next/notes/text.cssindex 625bc1d090..efccb44cb7 100644--- a/apps/client/src/stylesheets/theme-next/notes/text.css+++ b/apps/client/src/stylesheets/theme-next/notes/text.css@@ -433,7 +433,10 @@ div.ck-template-form .ck-labeled-field-view {clobbering the glyph's `content`. */:root div.ck-template-form .ck-template-icon {position: relative;- color: var(--note-icon-color);+ /* Honour the note's `#color` (carried by the `use-note-color` class, which defines+ `--custom-color`), falling back to the default icon colour when the note has none — the same+ mechanism the note tree uses for its icons. */+ color: var(--custom-color, var(--note-icon-color));&::after {display: block;