I'm facing an issue where my side-panel height is not expanding along with the content of the div. While specifying a height of 100% works well for mobile view, I encounter problems in desktop view as the sidebar's height remains fixed. I want the height to adjust dynamically based on the div's content. You can find my complete code on JSFiddle.
If you click on the navbar, you'll notice that the side-bar and div content are not aligned in terms of height as shown in the following image: https://i.sstatic.net/oImHq.png
Can anyone guide me on how to resolve this issue? It seems like I need to modify the height property of the CSS class, but I'm unsure how to do so:
.sidepanel {
height: 100%;
width: 0;
position: absolute;
z-index: 1;
left: 0;
background-color: #221F20;
overflow-x: hidden;
padding-top: 40px;
transition: 0.3s;
}