Sidebar mobile friendliness

Hello everyone,
How can I make the Sidebar collapse after opening another page using the option-men extension?
1.Why is it a problem?
-Because it is a major inconvenience when using a Streamlit website from a mobile phone. New users take a while to understand that they should click outside the sidebar or click on the X button on top and they usually start trying to swipe the sidebar or think that nothing had happened and spam click on the page.
2. Why not using the native multipage feature?
-Because the option menu pages load faster and looks better in terms of design

2 Likes

Hi @Hanna_John_Alkhoury,

Thanks for sharing your question with the community! :balloon: Please update your debugging post to include a code snippet and a link to your app’s public GitHub repo – this will allow the community to help you find an answer as quickly as possible. In the meantime, this post will be tagged as needs-more-info.

1 Like