Skip to content

Commit e57d637

Browse files
committed
fix: replace use_container_width with width=300 for Streamlit 1.28 compatibility
1 parent 42d899c commit e57d637

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

streamlit/app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def main():
243243
with st.sidebar:
244244
st.image(
245245
"https://img.shields.io/badge/OASIS-Security-blue?style=for-the-badge&logo=shield&logoColor=white",
246-
use_container_width=True,
246+
width=300,
247247
)
248248
st.markdown("---")
249249
st.subheader("🗂️ Filtres")
@@ -475,7 +475,7 @@ def main():
475475
lambda x: f"{x:.2f}%"
476476
)
477477
df_display.index = range(1, len(df_display) + 1)
478-
st.dataframe(df_display, use_container_width=True, height=480)
478+
st.dataframe(df_display, width=300, height=480)
479479

480480
# ── GRAPHIQUE 4 – Répartition par type ───
481481
st.markdown("---")
@@ -513,7 +513,7 @@ def main():
513513
with st.expander("🗃️ Données brutes filtrées"):
514514
st.dataframe(
515515
df_filtered.sort_values([COL_ANNEE, COL_REG]).head(500),
516-
use_container_width=True,
516+
width=300,
517517
)
518518
st.download_button(
519519
label="📥 Télécharger CSV filtré",

0 commit comments

Comments
 (0)