From 5d4dd8bc0a675228e8cf860453b2ee8e4ac788fc Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Fri, 13 Dec 2024 02:59:04 +0200 Subject: [PATCH] client: recent changes list: make possible to use a distinct style for items referencing deleted notes --- src/public/app/widgets/dialogs/recent_changes.js | 3 +++ src/public/stylesheets/style.css | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/public/app/widgets/dialogs/recent_changes.js b/src/public/app/widgets/dialogs/recent_changes.js index bbcfce2f1..9695c1773 100644 --- a/src/public/app/widgets/dialogs/recent_changes.js +++ b/src/public/app/widgets/dialogs/recent_changes.js @@ -127,6 +127,9 @@ export default class RecentChangesDialog extends BasicWidget { appContext.tabManager.getActiveContext().setNote(change.noteId); } }) + .addClass(() => { + if (change.current_isDeleted) return "deleted-note"; + }) .append( $("") .text(formattedTime) diff --git a/src/public/stylesheets/style.css b/src/public/stylesheets/style.css index 67b057428..f1f42dc07 100644 --- a/src/public/stylesheets/style.css +++ b/src/public/stylesheets/style.css @@ -1314,7 +1314,7 @@ body.electron.platform-darwin:not(.native-titlebar) .tab-row-container { border: 1px solid transparent; } -.recent-changes-content li:hover { +.recent-changes-content li:not(.deleted-note):hover { border-color: var(--hover-item-border-color); background: var(--hover-item-background-color); color: var(--hover-item-text-color);