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
feat(quick_search): try using another color so that matches stand out more? might change back
perf3ct9cef8c8e705e
diff --git a/apps/client/src/stylesheets/style.css b/apps/client/src/stylesheets/style.cssindex 7160640131..82a8312227 100644--- a/apps/client/src/stylesheets/style.css+++ b/apps/client/src/stylesheets/style.css@@ -2245,6 +2245,14 @@ footer.webview-footer button {padding: 1px 10px 1px 10px;}+/* Search result highlighting */+.search-result-title b,+.search-result-content b {+ font-weight: 900;+ color: orange;+ text-shadow: 0 0 1px rgba(255, 165, 0, 0.3);+}+/* Customized icons */.bx-tn-toc::before {diff --git a/apps/client/src/widgets/quick_search.ts b/apps/client/src/widgets/quick_search.tsindex 0d4668febe..0944041826 100644--- a/apps/client/src/widgets/quick_search.ts+++ b/apps/client/src/widgets/quick_search.ts@@ -238,12 +238,12 @@ export default class QuickSearchWidget extends BasicWidget {let itemHtml = `<div style="display: flex; flex-direction: column;"><div style="display: flex; align-items: flex-start; gap: 6px;"><span class="${result.icon}" style="flex-shrink: 0; margin-top: 1px;"></span>- <span style="flex: 1;">${result.highlightedNotePathTitle}</span>+ <span style="flex: 1;" class="search-result-title">${result.highlightedNotePathTitle}</span></div>`;// Add content snippet below the title if availableif (result.highlightedContentSnippet) {- itemHtml += `<div style="font-size: 0.85em; color: var(--main-text-color); opacity: 0.7; margin-left: 20px; margin-top: 4px; line-height: 1.3;">${result.highlightedContentSnippet}</div>`;+ itemHtml += `<div style="font-size: 0.85em; color: var(--main-text-color); opacity: 0.7; margin-left: 20px; margin-top: 4px; line-height: 1.3;" class="search-result-content">${result.highlightedContentSnippet}</div>`;}itemHtml += `</div>`;