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 ?