chore: migrate use_container_width → width (Streamlit deprecation)

``use_container_width`` is being removed after 2025-12-31. Streamlit
log was flooding the terminal with the deprecation notice on every
rerun. Mechanical sweep:

  use_container_width=True   →  width="stretch"
  use_container_width=False  →  width="content"

51 call sites across 11 page files + ``app_demo.py``. Also renamed
the ``local_download_button`` helper's ``use_container_width`` kwarg
to ``width`` (default ``"stretch"``); it has no external callers
passing the old name, so this is a safe rename.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-18 22:43:52 +00:00
parent e011c0b6e6
commit 61e63913cb
12 changed files with 54 additions and 54 deletions

View File

@@ -74,7 +74,7 @@ if uploaded_files:
df = pd.read_csv(f)
st.subheader(f"Preview: {f.name}")
st.caption(f"{len(df)} rows, {len(df.columns)} columns — Columns: {', '.join(df.columns[:10])}{'...' if len(df.columns) > 10 else ''}")
st.dataframe(df.head(5), use_container_width=True)
st.dataframe(df.head(5), width="stretch")
except Exception as e:
from src.core.errors import format_for_user
st.error(
@@ -93,5 +93,5 @@ st.selectbox("Mismatched columns", ["Fill with null", "Drop non-shared columns",
st.checkbox("Add source filename column", value=True, disabled=True)
st.divider()
st.button("Merge Files", type="primary", use_container_width=True, disabled=True)
st.button("Merge Files", type="primary", width="stretch", disabled=True)