fix: replace deprecated use_container_width parameters with width stretch
This commit is contained in:
@@ -459,7 +459,7 @@ else:
|
|||||||
font_color='#E2E8F0',
|
font_color='#E2E8F0',
|
||||||
legend=dict(orientation="h", y=-0.1)
|
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:
|
with col_chart2:
|
||||||
if not df_filtered.empty:
|
if not df_filtered.empty:
|
||||||
@@ -482,7 +482,7 @@ else:
|
|||||||
xaxis=dict(gridcolor='#1E293B'),
|
xaxis=dict(gridcolor='#1E293B'),
|
||||||
yaxis=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
|
# Tab 2: Job Table
|
||||||
with tabs[1]:
|
with tabs[1]:
|
||||||
@@ -535,7 +535,7 @@ else:
|
|||||||
|
|
||||||
st.dataframe(
|
st.dataframe(
|
||||||
df_grid_display,
|
df_grid_display,
|
||||||
use_container_width=True,
|
width="stretch",
|
||||||
column_config={
|
column_config={
|
||||||
"job_id": st.column_config.NumberColumn(format="%d"),
|
"job_id": st.column_config.NumberColumn(format="%d"),
|
||||||
"duration_secs": st.column_config.NumberColumn(format="%d s"),
|
"duration_secs": st.column_config.NumberColumn(format="%d s"),
|
||||||
@@ -577,7 +577,7 @@ else:
|
|||||||
"Status Atual": display_status
|
"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:
|
with col_form:
|
||||||
st.markdown("#### Formulário de Mitigação")
|
st.markdown("#### Formulário de Mitigação")
|
||||||
@@ -665,7 +665,7 @@ else:
|
|||||||
# List users and delete option
|
# List users and delete option
|
||||||
st.markdown("##### Usuários Cadastrados")
|
st.markdown("##### Usuários Cadastrados")
|
||||||
users_list = db.get_all_users()
|
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
|
# Delete user selector
|
||||||
st.markdown("##### Excluir Usuário")
|
st.markdown("##### Excluir Usuário")
|
||||||
|
|||||||
Reference in New Issue
Block a user