Skip to content

Build your personal knowledge base with Trilium Notes

fix(mobile): missing snap in board view

Elian Dorana2921cb98242
diff --git a/apps/client/src/widgets/collections/board/index.css b/apps/client/src/widgets/collections/board/index.css
index 9d2e44b0e3..4851410db8 100644
--- a/apps/client/src/widgets/collections/board/index.css
+++ b/apps/client/src/widgets/collections/board/index.css
@@ -10,12 +10,6 @@
--card-padding: 0.6em;
}
-body.mobile .board-view {
- scroll-snap-type: x mandatory;
- -webkit-overflow-scrolling: touch;
- scroll-behavior: smooth;
-}
-
.board-view-container {
height: 100%;
display: flex;
@@ -26,6 +20,12 @@ body.mobile .board-view {
overflow-x: auto;
}
+body.mobile .board-view-container {
+ scroll-snap-type: x mandatory;
+ -webkit-overflow-scrolling: touch;
+ scroll-behavior: smooth;
+}
+
.board-view-container .board-column {
width: 250px;
flex-shrink: 0;