.links-wrapper { border: 1px solid red; height: 100%; padding: 10px; flex: 1; overflow-x: auto; scroll-snap-type: y mandatory; & .link-block { min-height: 100%; width: 100%; margin-bottom: 10px; flex: 1; display: flex; flex-direction: column; scroll-snap-align: center; & .links { width: 100%; display: flex; flex-direction: column; } } }