diff --git a/src/public/app/widgets/dialogs/recent_changes.js b/src/public/app/widgets/dialogs/recent_changes.js index 9754144f9..ff3a2ad61 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($('
  • ') + .on("click", (e) => { + if (e.target?.nodeName !== "A") { // Ignore clicks on the link + // Open the current note + appContext.tabManager.getActiveContext().setNote(change.noteId); + } + }) .append( $("") .text(formattedTime) diff --git a/src/public/stylesheets/style.css b/src/public/stylesheets/style.css index f4939f0df..67b057428 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