Spaces:
Build error
Build error
expander defaulte expanded
Browse files- .vscode/settings.json +3 -3
- app.py +3 -3
.vscode/settings.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
{
|
2 |
"workbench.colorCustomizations": {
|
3 |
-
"activityBar.background": "#
|
4 |
-
"titleBar.activeBackground": "#
|
5 |
-
"titleBar.activeForeground": "#
|
6 |
}
|
7 |
}
|
|
|
1 |
{
|
2 |
"workbench.colorCustomizations": {
|
3 |
+
"activityBar.background": "#630018",
|
4 |
+
"titleBar.activeBackground": "#8A0121",
|
5 |
+
"titleBar.activeForeground": "#FFFBFC"
|
6 |
}
|
7 |
}
|
app.py
CHANGED
@@ -91,8 +91,8 @@ if len(st.session_state['wiki_suggestions']) != 0:
|
|
91 |
st.button(s, on_click=show_wiki_text, args=(s,), key=str(i)+s)
|
92 |
|
93 |
if len(st.session_state['wiki_text']) != 0:
|
94 |
-
for t in st.session_state['wiki_text']:
|
95 |
-
new_expander = st.expander(label=t[:30] + "...")
|
96 |
with new_expander:
|
97 |
st.markdown(t)
|
98 |
|
@@ -110,7 +110,7 @@ if st.session_state['has_run']:
|
|
110 |
with cols[0]:
|
111 |
HtmlFile = open(network_filename, 'r', encoding='utf-8')
|
112 |
source_code = HtmlFile.read()
|
113 |
-
components.html(source_code, height=
|
114 |
with cols[1]:
|
115 |
st.text("expand")
|
116 |
for i,s in enumerate(st.session_state["nodes"]):
|
|
|
91 |
st.button(s, on_click=show_wiki_text, args=(s,), key=str(i)+s)
|
92 |
|
93 |
if len(st.session_state['wiki_text']) != 0:
|
94 |
+
for i, t in enumerate(st.session_state['wiki_text']):
|
95 |
+
new_expander = st.expander(label=t[:30] + "...", expanded=(i==0))
|
96 |
with new_expander:
|
97 |
st.markdown(t)
|
98 |
|
|
|
110 |
with cols[0]:
|
111 |
HtmlFile = open(network_filename, 'r', encoding='utf-8')
|
112 |
source_code = HtmlFile.read()
|
113 |
+
components.html(source_code, height=2000,width=2000)
|
114 |
with cols[1]:
|
115 |
st.text("expand")
|
116 |
for i,s in enumerate(st.session_state["nodes"]):
|