I'm attempting to recreate a sleek scrollbar that caught my eye on the website . To achieve this, I need to have a screen larger than 955px in order to display the sidebar. However, when my sidebar overflows in the y direction, it causes an additional scroll bar to appear alongside the page's scroll bar. This is not the desired outcome. What I actually want is for the sidebar to remain fixed at the bottom of the screen, similar to how it behaves on the mentioned website. Here's a snippet of my current code:
.sidebar{
display: block;
background-color: #1056b1;
width: 30%;
height: 100%;
position: fixed;
display: flex;
flex-direction: column;
align-items: center;
overflow-y: scroll;
}
.content-on-the-right{
margin-left: 31%;
}
Could anyone offer insight into how I can address this issue using vanilla JavaScript or ReactJS, or potentially utilizing CSS if possible?