Dashboard scroll-snap
This commit is contained in:
parent
d17255ecc1
commit
8a07a4e63f
@ -1,5 +1,7 @@
|
||||
@for (plot of plots; track plot.id) {
|
||||
<div class="plots">
|
||||
@for (plot of plots; track plot.id) {
|
||||
<div class="plot">
|
||||
<app-plot [plot]="plot"></app-plot>
|
||||
</div>
|
||||
}
|
||||
}
|
||||
</div>
|
||||
|
||||
@ -1,4 +1,12 @@
|
||||
.plot {
|
||||
.plots {
|
||||
scroll-snap-type: y mandatory;
|
||||
height: 100vh;
|
||||
overflow-y: scroll;
|
||||
scroll-behavior: smooth;
|
||||
|
||||
.plot {
|
||||
height: 60vw;
|
||||
scroll-snap-align: start;
|
||||
max-height: 100vh;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user