mirror of
https://github.com/zadam/trilium.git
synced 2025-11-16 13:34:30 +01:00
feat(board): scroll snapping on mobile
This commit is contained in:
parent
b7703fc4df
commit
63cc5b21b4
@ -9,6 +9,12 @@
|
||||
--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;
|
||||
@ -31,6 +37,12 @@
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
body.mobile .board-view-container .board-column {
|
||||
width: 75vw;
|
||||
max-width: 300px;
|
||||
scroll-snap-align: center;
|
||||
}
|
||||
|
||||
.board-view-container .board-column.drag-over {
|
||||
border-color: var(--main-text-color);
|
||||
background-color: var(--hover-item-background-color);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user