One feature on my website is a sliding panel (Image 1) located on the right side. It appears and disappears when a button is clicked, covering the entire height of the screen.https://i.sstatic.net/dF5Zc.jpg
Here's the CSS code for this sliding panel-
slide-in-panel-component{ display:none; position: fixed;top: -10px; margin-right: 20px; height: 100vh; width:600px; right: -600px; background-color: #fff3e2;z-index:9999999}
I want the panel to adjust its height based on the screen size changes so that it always displays completely without any overlap. Currently, as shown in Image 2, shrinking the screen causes certain components of the panel to be hidden.https://i.sstatic.net/xHQ1x.jpg
Despite trying various methods like using position:fixed and setting min-height, I have not been able to achieve the desired outcome.