mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-11 19:22:31 +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>')
|
$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(
|
.append(
|
||||||
$("<span>")
|
$("<span>")
|
||||||
.text(formattedTime)
|
.text(formattedTime)
|
||||||
|
@ -1309,3 +1309,13 @@ body.electron.platform-darwin:not(.native-titlebar) .tab-row-container {
|
|||||||
.recent-changes-content li > span:first-child::after {
|
.recent-changes-content li > span:first-child::after {
|
||||||
content: " - ";
|
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