Удалите flex-grow
из .first
и .second
и замените max-height
на height
на .first
и .second
.
height: 60vh;
background-color: yellow;
}
.col {
background-color: red;
height: 100%;
width: 100px;
display: flex;
flex-direction: column;
}
.first {
background-color: blue;
width: 95%;
overflow: auto;
height: max-content;
}
.second {
background-color: green;
width: 95%;
overflow: auto;
height: max-content;
}