From ab51a92ecd4fdfe5af14b2fbd22d378b1ad98d6d Mon Sep 17 00:00:00 2001 From: LUIS NOVO Date: Tue, 22 Oct 2024 16:41:30 -0300 Subject: [PATCH] simplify UI --- stream_app/source.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/stream_app/source.py b/stream_app/source.py index f0d78f2..2ad6803 100644 --- a/stream_app/source.py +++ b/stream_app/source.py @@ -133,13 +133,16 @@ def source_card(session_id, source): st.write(insight.insight_type) st.write(insight.content) - with st.popover("Actions"): - if st.button("Edit Source", icon="📝", key=source.id): - result = source_panel(source.id) - st.write(result) - if st.button("Delete", icon="🗑️", key=f"delete_options_{source.id}"): - source.delete() - st.rerun() + if st.button("Edit Source", icon="📝", key=source.id): + source_panel(source.id) + + # with st.popover("Actions"): + # if st.button("Edit Source", icon="📝", key=source.id): + # result = source_panel(source.id) + # st.write(result) + # if st.button("Delete", icon="🗑️", key=f"delete_options_{source.id}"): + # source.delete() + # st.rerun() st.session_state[session_id]["context_config"][source.id] = context_state