From 6a67f9d4a6a4413cea9206b397c2ed406b8f68ba Mon Sep 17 00:00:00 2001 From: Silas Brito Date: Mon, 13 Jul 2026 20:21:35 -0300 Subject: [PATCH] fix: replace deprecated use_container_width parameters with width stretch --- app.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app.py b/app.py index 36e1b6b..6f9c40d 100644 --- a/app.py +++ b/app.py @@ -459,7 +459,7 @@ else: font_color='#E2E8F0', legend=dict(orientation="h", y=-0.1) ) - st.plotly_chart(fig_donut, use_container_width=True) + st.plotly_chart(fig_donut, width="stretch") with col_chart2: if not df_filtered.empty: @@ -482,7 +482,7 @@ else: xaxis=dict(gridcolor='#1E293B'), yaxis=dict(gridcolor='#1E293B') ) - st.plotly_chart(fig_bar, use_container_width=True) + st.plotly_chart(fig_bar, width="stretch") # Tab 2: Job Table with tabs[1]: @@ -535,7 +535,7 @@ else: st.dataframe( df_grid_display, - use_container_width=True, + width="stretch", column_config={ "job_id": st.column_config.NumberColumn(format="%d"), "duration_secs": st.column_config.NumberColumn(format="%d s"), @@ -577,7 +577,7 @@ else: "Status Atual": display_status }) - st.dataframe(pd.DataFrame(failures_list), use_container_width=True, hide_index=True) + st.dataframe(pd.DataFrame(failures_list), width="stretch", hide_index=True) with col_form: st.markdown("#### Formulário de Mitigação") @@ -665,7 +665,7 @@ else: # List users and delete option st.markdown("##### Usuários Cadastrados") users_list = db.get_all_users() - st.dataframe(pd.DataFrame(users_list), use_container_width=True, hide_index=True) + st.dataframe(pd.DataFrame(users_list), width="stretch", hide_index=True) # Delete user selector st.markdown("##### Excluir Usuário")