I'm creating 2 parts table, that are connected in between. One part can be scrolled only vertically. Second part is much bigger and can be scrolled vertically (they share vertical scrollbar) and horizontally. Those parts are placed in container that have specific height and width.
.wrapper {
width: 100vw;
height: 100vh;
}
.container {
display: grid;
grid-template-columns: 30vw 70vw;
grid-template-rows: 1fr;
max-height: 300px;
overflow-y: auto;
overflow-x: hidden;
}
.left {
max-height: 100%;
}
.right {
max-height: 100%;
display: flex;
flex-direction: row;
overflow-x: auto;
}
<div class="wrapper">
<div class="container">
<div class="left">
<div>1</div>
<div>2</div>
<div>3</div>
</div>
<div class="right">
<div class="column">
<div>1</div>
<div>2</div>
<div>3</div>
</div>
<div class="column">
<div>1</div>
<div>2</div>
<div>3</div>
</div>
</div>
</div>
</div>
It is better visible on stackblitz: Example
Desired result
Current result
The code above kind of works, but the scrollbar isn't always visible. It should be stuck to the screen bottom but instead it is stuck to the container bottom. Do you have any idea how to fix this scrollbar?

