Smoth scroll on small screens
This commit is contained in:
parent
393dc37602
commit
5dc13634e4
|
@ -130,6 +130,10 @@
|
|||
.column {
|
||||
margin: 20px 10px;
|
||||
width: 250px;
|
||||
|
||||
@media (max-width: 480px) {
|
||||
scroll-snap-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
header {
|
||||
|
|
|
@ -106,7 +106,7 @@
|
|||
</section>
|
||||
{/if}
|
||||
|
||||
<style>
|
||||
<style lang="less">
|
||||
section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
@ -125,5 +125,6 @@
|
|||
flex: 1;
|
||||
overflow: scroll;
|
||||
padding: 0 40px;
|
||||
scroll-snap-type: x mandatory;
|
||||
}
|
||||
</style>
|
||||
|
|
Loading…
Reference in New Issue