From 78f9db2d2465b3231aaf1bca9dc7b83e7865cf1a Mon Sep 17 00:00:00 2001 From: jgieseler Date: Fri, 3 Nov 2023 17:35:15 +0200 Subject: [PATCH] manually increase width of sidebar a little bit --- streamlit_app.py | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/streamlit_app.py b/streamlit_app.py index fe2ce2f..b5462f7 100644 --- a/streamlit_app.py +++ b/streamlit_app.py @@ -38,7 +38,20 @@ def delete_from_state(vars): st.title('Solar-MACH') st.header('Multi-spacecraft longitudinal configuration plotter') -st.markdown(" ", unsafe_allow_html=True) +# TODO: This doesn't seem to work anymore with streamlit version 1.28.1 +st.markdown(" ", unsafe_allow_html=True) + +# Inject custom CSS to set the width of the sidebar +st.markdown( + """ + + """, + unsafe_allow_html=True, +) # st.warning("If your browser repeatedly complains about *redirecting too many times* or *redirecting not properly*, you might for the time being use [solar-mach.streamlitapp.com](https://solar-mach.streamlitapp.com) (instead of [solar-mach.github.io](https://solar-mach.github.io)).") # Streamlit has recently changed some settings that still cause some problems. (Oct 2022)") @@ -255,7 +268,7 @@ def obtain_vsw(body_list, date): def_full_body_list, key='bodies') # , on_change=clear_url) - with st.sidebar.expander("Solar wind speed (kms/s) per S/C", expanded=True): + with st.sidebar.expander("Solar wind speed (km/s) per S/C", expanded=True): vsw_dict = {} st.button("Try to obtain measured speeds :mag:", on_click=obtain_vsw, args=[body_list, date], type='primary') for body in body_list: