Issues with 1.39.0, Expander

Hi,

After upgrading to 1.39.0 (from 1.32.0) I am having a small annoying issue.

The expander button “>” for the sidebar is constantly showing, even when “expanded”.
expander
Is this because I am using a transperent background for the sidebar? Any way to make the button not show when the sidebar is expanded?

Any solution to this?

Thanks

This is a little hacky, but it seems to work:

st.html(
    """
<style>
    .stSidebar {
        background-color: transparent;
    }

    .stApp:has(.stSidebar[aria-expanded="true"]) [data-testid="stSidebarCollapsedControl"] {
        display: none;
    }

</style>
"""
)
1 Like

This does indeed seem to work, thanks for the quick reply!

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.