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
client: recent changes list: make the whole item clickable, not just the note title
Adorian Doran6e1cfdbb893c
diff --git a/src/public/app/widgets/dialogs/recent_changes.js b/src/public/app/widgets/dialogs/recent_changes.jsindex 9754144f93..ff3a2ad61c 100644--- a/src/public/app/widgets/dialogs/recent_changes.js+++ b/src/public/app/widgets/dialogs/recent_changes.js@@ -120,6 +120,12 @@ export default class RecentChangesDialog extends BasicWidget {}$changesList.append($('<li>')+ .on("click", (e) => {+ if (e.target?.nodeName !== "A") { // Ignore clicks on the link+ // Open the current note+ appContext.tabManager.getActiveContext().setNote(change.noteId);+ }+ }).append($("<span>").text(formattedTime)diff --git a/src/public/stylesheets/style.css b/src/public/stylesheets/style.cssindex f4939f0df1..67b057428d 100644--- a/src/public/stylesheets/style.css+++ b/src/public/stylesheets/style.css@@ -1309,3 +1309,13 @@ body.electron.platform-darwin:not(.native-titlebar) .tab-row-container {.recent-changes-content li > span:first-child::after {content: " - ";}++.recent-changes-content li {+ border: 1px solid transparent;+}++.recent-changes-content li:hover {+ border-color: var(--hover-item-border-color);+ background: var(--hover-item-background-color);+ color: var(--hover-item-text-color);+}\ No newline at end of file