Closed Ginner closed 2 months ago
Ah, good point, I can reproduce this. Will let @LukasMasuch respond if that was meant to work - if not, worth stressing that it doesn't work in the docs.
@Ginner The bottom contains always refers to a root container at the bottom of the main content area. This is similar to st.sidebar
. So, it doesn't really matter where you call it.
Okay, so to understand correctly, it is the intended behavior? If so, I'd agree with arnaudmiribel in specifying it in the docs.
I'd find the functionality of being able to use it in the sidebar useful.
Description
I'd like to add text to the bottom of the sidebar. However, putting a bottom container in the sidebar, moves the container to the bottom of the content window.
Reproduction steps
st.write("Hello World")
with st.sidebar: st.write("This is a sidebar") with bottom(): st.write("This should be in the bottom of the sidebar.")