Skip to content

Build your personal knowledge base with Trilium Notes

style(collections/board): smoother shadows, no shift

Elian Doran114fdd6f913f
diff --git a/apps/client/src/widgets/collections/board/index.css b/apps/client/src/widgets/collections/board/index.css
index 154f4adb3a..67fe0985c5 100644
--- a/apps/client/src/widgets/collections/board/index.css
+++ b/apps/client/src/widgets/collections/board/index.css
@@ -112,7 +112,7 @@
.board-view-container .board-note {
- box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.25);
+ box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1);
margin: 0.65em 0;
padding: var(--card-padding);
border-radius: 5px;
@@ -141,6 +141,10 @@
background-color: var(--main-background-color);
}
+.board-view-container .board-note:hover {
+ box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.1);
+}
+
.board-view-container .board-note:hover > .edit-icon {
position: absolute;
top: 8px;
@@ -168,11 +172,6 @@
to { opacity: 0; transform: translateY(-10px); }
}
-.board-view-container .board-note:hover {
- transform: translateY(-2px);
- box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.35);
-}
-
.board-view-container .board-note.dragging {
opacity: 0.5;
transform: rotate(5deg);