Skip to content

Build your personal knowledge base with Trilium Notes

feat(client): fade note cards' background and shadow on hover

Elian Doran0a9a169a4eee
diff --git a/apps/client/src/widgets/collections/board/index.css b/apps/client/src/widgets/collections/board/index.css
index b49df5c0fe..f4078c67ce 100644
--- a/apps/client/src/widgets/collections/board/index.css
+++ b/apps/client/src/widgets/collections/board/index.css
@@ -522,7 +522,7 @@ body.mobile .board-view-container .board-add-column {
/* Below only: a top margin would be the first card's to drop, and a drop placeholder standing
above it takes that place and moves the card down by it. */
margin-block: 0 0.65em;
- transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.15s ease;
+ transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, opacity 0.15s ease;
.board-note-outside-filter {
color: var(--board-muted-text-color);
diff --git a/apps/client/src/widgets/note_card.css b/apps/client/src/widgets/note_card.css
index 1e594cfea9..659adb9a74 100644
--- a/apps/client/src/widgets/note_card.css
+++ b/apps/client/src/widgets/note_card.css
@@ -45,6 +45,7 @@
background-color: var(--note-card-background);
box-shadow: var(--board-item-shadow);
border-radius: 5px;
+ transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
:where(.tn-note-card:hover) {