Sticky sidebar

Hi,

Is it possible to make the sidebar sticky? In the sense, that it wonā€™t collapse and also that it would hide any content behind it?

Sorry if thatā€™s mentioned in documentation. I havenā€™t found it. Iā€™ve found another question where a user is actually asking how he can collapse the sidebar. Thatā€™s funny because for me the sidebar is collapsed by default and I canā€™t make it stick permanently.

Cheers
Konstantin

1 Like

Hi @srilakshmi,

Unfortunately, the following app

import streamlit as st
st.sidebar.button('Test button')
st.write('Some text')

loads with a collapsed side bar. And when I unfold it, ā€œSome textā€ gets hidden behind it.

Cheers
Konstantin

Excellent App @srilakshmi. Is there a pointer to the source code ?