mirror of
https://github.com/PerpetualSoftware/pad.git
synced 2026-09-21 18:13:26 +00:00
fix: make adjacent board columns visibly peek on mobile (#10)
- Column width 78vw → 75vw so ~25vw of the next column is visible - scroll-snap-type mandatory → proximity so the peek persists at rest - Removed scroll-behavior: smooth for native momentum feel The previous fix (78vw + mandatory snap) still hid adjacent columns because mandatory snap forced the viewport to align flush with each column edge. Proximity snap allows the natural resting position to show the neighboring column.
This commit is contained in:
@@ -440,16 +440,15 @@
|
||||
.board-view {
|
||||
display: flex;
|
||||
overflow-x: auto;
|
||||
scroll-snap-type: x mandatory;
|
||||
scroll-behavior: smooth;
|
||||
scroll-snap-type: x proximity;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
gap: var(--space-3);
|
||||
padding: 0 var(--space-4) var(--space-3);
|
||||
}
|
||||
|
||||
.kanban-column {
|
||||
min-width: 78vw;
|
||||
max-width: 78vw;
|
||||
min-width: 75vw;
|
||||
max-width: 75vw;
|
||||
scroll-snap-align: start;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user