Spaces:
Sleeping
Sleeping
Trương Gia Bảo
commited on
Commit
·
53e9a2b
1
Parent(s):
975be11
Update sidebar max_width
Browse files
app.py
CHANGED
@@ -39,12 +39,14 @@ css='''
|
|
39 |
[data-testid="metric-container"] label {
|
40 |
width: fit-content;
|
41 |
margin: auto;
|
42 |
-
|
43 |
[data-testid="stDataFrameResizable"] {
|
44 |
width: fit-content;
|
45 |
margin: auto;
|
46 |
}
|
47 |
-
|
|
|
|
|
48 |
'''
|
49 |
|
50 |
st.markdown(f'<style>{css}</style>',unsafe_allow_html=True)
|
@@ -238,7 +240,7 @@ def form_header():
|
|
238 |
oab_type = 'primary' if st.session_state['current_view'] == 1 else 'secondary'
|
239 |
ab_type = 'primary' if st.session_state['current_view'] == 2 else 'secondary'
|
240 |
|
241 |
-
step_cols = st.columns([.85,.
|
242 |
step_cols[1].button('Optimize a molecule',on_click=set_page_view,args=[0],type=oam_type,use_container_width=True)
|
243 |
step_cols[2].button('Optimize a batch',on_click=set_page_view,args=[1],type=oab_type,use_container_width=True)
|
244 |
step_cols[3].button('About',on_click=set_page_view,args=[2],type=ab_type,use_container_width=True)
|
|
|
39 |
[data-testid="metric-container"] label {
|
40 |
width: fit-content;
|
41 |
margin: auto;
|
42 |
+
}
|
43 |
[data-testid="stDataFrameResizable"] {
|
44 |
width: fit-content;
|
45 |
margin: auto;
|
46 |
}
|
47 |
+
[data-testid="stSidebar"]{
|
48 |
+
max-width: 300px;
|
49 |
+
}
|
50 |
'''
|
51 |
|
52 |
st.markdown(f'<style>{css}</style>',unsafe_allow_html=True)
|
|
|
240 |
oab_type = 'primary' if st.session_state['current_view'] == 1 else 'secondary'
|
241 |
ab_type = 'primary' if st.session_state['current_view'] == 2 else 'secondary'
|
242 |
|
243 |
+
step_cols = st.columns([.2,.85,.85,.85,.2])
|
244 |
step_cols[1].button('Optimize a molecule',on_click=set_page_view,args=[0],type=oam_type,use_container_width=True)
|
245 |
step_cols[2].button('Optimize a batch',on_click=set_page_view,args=[1],type=oab_type,use_container_width=True)
|
246 |
step_cols[3].button('About',on_click=set_page_view,args=[2],type=ab_type,use_container_width=True)
|