client: recent changes list: make the whole item clickable, not just the note title

This commit is contained in:
Adorian Doran 2024-12-13 02:11:51 +02:00
parent aee8749bac
commit 6e1cfdbb89
2 changed files with 16 additions and 0 deletions

View File

@ -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)

View File

@ -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);
}