Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -688,10 +688,8 @@ def show_field(f: Field, index: int, data_collected):
|
|
| 688 |
st.markdown(f.title)
|
| 689 |
|
| 690 |
case 'expander':
|
| 691 |
-
|
| 692 |
-
|
| 693 |
-
st.markdown(f.title)
|
| 694 |
-
for child in (f.children or []):
|
| 695 |
show_field(child, index, data_collected)
|
| 696 |
|
| 697 |
case 'container':
|
|
|
|
| 688 |
st.markdown(f.title)
|
| 689 |
|
| 690 |
case 'expander':
|
| 691 |
+
with (st.expander(f.title) if f.type == 'expander' else st.container(border=True)):
|
| 692 |
+
for child in f.children:
|
|
|
|
|
|
|
| 693 |
show_field(child, index, data_collected)
|
| 694 |
|
| 695 |
case 'container':
|