Is there a way to remove the view more
/view less
toggle in the navigation, and just always view all?
You can remove the “View more/View less” toggle in the Streamlit sidebar and always display all pages by adding a small tweak with custom CSS with st.markdown
. The following code worked for me :
st.markdown(
"""
<style>
[data-testid="stSidebarNavItems"] {
max-height: none;
}
</style>
""",
unsafe_allow_html=True
)
This will remove the toggle and display all pages at once in the sidebar.
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.