St.expander UI/UX issue

Hi ya not sure is a very dumb question here. I’m new to Streamlit and below is both of the version that I use for my project.
Streamlit version: 1.48.1
Python version: 3.12.7

I’m currently facing an issue on the st.expander, the ui/ux return me like this.

Below is the code for the screenshot:
with st.expander(“See more”):
st.write(st.version)
create_compact_legend()

which create_compact_legend() is the details of my expander. I did try using the sample code from documentation and i did get the same result.

I did try to clear cache function that provide by the Streamlit. Unfortunately I’m still getting the same result.

Hopefully someone here can notice this post and have a look.

Regards:
Jiabao

Hi @jiabao.lai,

If possible, could you please share the create_compact_legend() function? You can remove all the core logic and keep only the markdown parts.

Thanks,
Prakash

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