Spaces:
Running
Running
James McCool
commited on
Commit
·
e9c95d8
1
Parent(s):
38618a0
Enhance Handbuilder tab in app.py by increasing the height of the player selection display for better visibility and adding a "Clear Data" button to reset player selections, improving user experience and interactivity.
Browse files
app.py
CHANGED
@@ -832,6 +832,15 @@ with tab4:
|
|
832 |
st.dataframe(
|
833 |
select_players_disp,
|
834 |
use_container_width=True,
|
835 |
-
height=
|
836 |
hide_index=True
|
837 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
832 |
st.dataframe(
|
833 |
select_players_disp,
|
834 |
use_container_width=True,
|
835 |
+
height=300,
|
836 |
hide_index=True
|
837 |
+
)
|
838 |
+
|
839 |
+
if st.button("Clear Data", key='clear_handbuild'):
|
840 |
+
player_select_df['Select'] = False
|
841 |
+
edited_df = st.data_editor(
|
842 |
+
player_select_df,
|
843 |
+
use_container_width=True,
|
844 |
+
hide_index=True,
|
845 |
+
key="handbuilder_editor"
|
846 |
+
)
|