Provide a way to change the default width of sidebar
See original GitHub issueProblem
I would like to be able to change the width of the sidebar. In the previous version, the method mentioned in this https://github.com/streamlit/streamlit/issues/2058#issuecomment-816989601 worked well to solve my problem.
However, after the update, sidebar became draggable, but the above method no longer works. I also did not find a parameter where I can change the default width. Please forgive me if I am missing something
Solution
MVP: Provide a parameter in st.set_page_config
to control the default sidebar width.
Community voting on feature requests enables the Streamlit team to understand which features are most important to our users.
If you’d like the Streamlit team to prioritize this feature request, please use the 👍 (thumbs up emoji) reaction in response to the initial post.
Issue Analytics
- State:
- Created a year ago
- Reactions:21
- Comments:7
Top GitHub Comments
+1 to this request @jrieke.
Setting a fixed sidebar width is quite important. If a user makes sidebar too narrow, everything in it starts “word-wrapping”. This happening to 1 widget or element in sidebar is bearable, but with a few widgets or elements in the sidebar (a very common situation in Streamlit apps), it gets ugly fast.
For example, sometimes we want this sidebar width to match the width needed to display a header, subheader, text, or button with a “longer than usual label” in a single line (instead of “word-wrapping” and continuing on a second line).
Same here. I jumped into 1.14 from 1.11. I do not particularly care for the manual resizing, but the sidebar is now too narrow for the content I had there before.