mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-10 10:22:29 +08:00
client: recent changes list: make the whole item clickable, not just the note title
This commit is contained in:
parent
aee8749bac
commit
6e1cfdbb89
@ -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)
|
||||
|
@ -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);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user