khaerens commited on
Commit
376bc0c
1 Parent(s): fab03b1

expander defaulte expanded

Browse files
Files changed (2) hide show
  1. .vscode/settings.json +3 -3
  2. app.py +3 -3
.vscode/settings.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
  "workbench.colorCustomizations": {
3
- "activityBar.background": "#09323E",
4
- "titleBar.activeBackground": "#0C4656",
5
- "titleBar.activeForeground": "#F6FCFE"
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=1500,width=1500)
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"]):